diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php index 9ab1daaa5e..e8f2b9a739 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php @@ -607,15 +607,15 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller { ); /** - * Filters the updated attachment meta data. + * Filters the meta data for the new image created by editing an existing image. * * @since 5.5.0 * - * @param array $data Array of updated attachment meta data. - * @param int $new_attachment_id Attachment post ID. - * @param int $attachment_id Original Attachment post ID. + * @param array $new_image_meta Meta data for the new image. + * @param int $new_attachment_id Attachment post ID for the new image. + * @param int $attachment_id Attachment post ID for the edited (parent) image. */ - $new_image_meta = apply_filters( 'wp_edited_attachment_metadata', $new_image_meta, $new_attachment_id, $attachment_id ); + $new_image_meta = apply_filters( 'wp_edited_image_metadata', $new_image_meta, $new_attachment_id, $attachment_id ); wp_update_attachment_metadata( $new_attachment_id, $new_image_meta ); diff --git a/wp-includes/version.php b/wp-includes/version.php index dd6f888050..0ec37c574b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta2-48517'; +$wp_version = '5.5-beta2-48518'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.