Changeset 49084 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/01/2020 05:53:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r49041 r49084 5993 5993 $attachment_id = (int) $attachment_id; 5994 5994 5995 $post = get_post( $attachment_id ); 5996 if ( ! $post ) { 5995 $data = get_post_meta( $attachment_id, '_wp_attachment_metadata', true ); 5996 5997 if ( empty( $data ) ) { 5997 5998 return false; 5998 5999 } 5999 6000 $data = get_post_meta( $post->ID, '_wp_attachment_metadata', true );6001 6000 6002 6001 if ( $unfiltered ) { … … 6013 6012 * @param int $attachment_id Attachment post ID. 6014 6013 */ 6015 return apply_filters( 'wp_get_attachment_metadata', $data, $ post->ID);6014 return apply_filters( 'wp_get_attachment_metadata', $data, $attachment_id ); 6016 6015 } 6017 6016
Note: See TracChangeset
for help on using the changeset viewer.