mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 10:59:07 +01:00
REST API, Media: Fix/improve the inline docs and name of the new wp_edited_image_metadata
filter.
Props desrosj, azaozz. See #44405. Built from https://develop.svn.wordpress.org/trunk@48518 git-svn-id: http://core.svn.wordpress.org/trunk@48280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02f200df1d
commit
c2639c74ff
@ -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 );
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user