Ticket #52196: 52196.diff
File 52196.diff, 570 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/post.php
6088 6088 function wp_get_attachment_metadata( $attachment_id = 0, $unfiltered = false ) { 6089 6089 $attachment_id = (int) $attachment_id; 6090 6090 6091 if ( ! $attachment_id ) { 6092 $post = get_post(); 6093 6094 if ( ! $post ) { 6095 return false; 6096 } 6097 6098 $attachment_id = $post->ID; 6099 } 6100 6091 6101 $data = get_post_meta( $attachment_id, '_wp_attachment_metadata', true ); 6092 6102 6093 6103 if ( ! $data ) {