Changeset 48518
- Timestamp:
- 07/20/2020 09:02:13 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r48510 r48518 608 608 609 609 /** 610 * Filters the updated attachment meta data.610 * Filters the meta data for the new image created by editing an existing image. 611 611 * 612 612 * @since 5.5.0 613 613 * 614 * @param array $ data Array of updated attachment meta data.615 * @param int $new_attachment_id Attachment post ID .616 * @param int $attachment_id Original Attachment post ID.614 * @param array $new_image_meta Meta data for the new image. 615 * @param int $new_attachment_id Attachment post ID for the new image. 616 * @param int $attachment_id Attachment post ID for the edited (parent) image. 617 617 */ 618 $new_image_meta = apply_filters( 'wp_edited_ attachment_metadata', $new_image_meta, $new_attachment_id, $attachment_id );618 $new_image_meta = apply_filters( 'wp_edited_image_metadata', $new_image_meta, $new_attachment_id, $attachment_id ); 619 619 620 620 wp_update_attachment_metadata( $new_attachment_id, $new_image_meta );
Note: See TracChangeset
for help on using the changeset viewer.