Changeset 50040 for branches/5.6
- Timestamp:
- 01/28/2021 12:08:48 AM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-includes/post.php
r49732 r50040 6072 6072 * @since 2.1.0 6073 6073 * 6074 * @param int $attachment_id Attachment post ID. Default s to global $post.6074 * @param int $attachment_id Attachment post ID. Default 0. 6075 6075 * @param bool $unfiltered Optional. If true, filters are not run. Default false. 6076 6076 * @return array|false { … … 6087 6087 function wp_get_attachment_metadata( $attachment_id = 0, $unfiltered = false ) { 6088 6088 $attachment_id = (int) $attachment_id; 6089 6090 if ( ! $attachment_id ) { 6091 $post = get_post(); 6092 6093 if ( ! $post ) { 6094 return false; 6095 } 6096 6097 $attachment_id = $post->ID; 6098 } 6089 6099 6090 6100 $data = get_post_meta( $attachment_id, '_wp_attachment_metadata', true );
Note: See TracChangeset
for help on using the changeset viewer.