Changeset 23937
- Timestamp:
- 04/09/2013 01:42:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23921 r23937 2046 2046 $count = 1; 2047 2047 2048 if ( has_post_format( $type ) ) {2048 if ( has_post_format( $type, $post ) ) { 2049 2049 $meta = get_post_format_meta( $post->ID ); 2050 2050 if ( ! empty( $meta[$type] ) ) { … … 2101 2101 } 2102 2102 2103 $medias = call_user_func( 'get_attached_' . $type );2103 $medias = call_user_func( 'get_attached_' . $type, $post->ID ); 2104 2104 if ( ! empty( $medias ) ) { 2105 2105 $media = reset( $medias );
Note: See TracChangeset
for help on using the changeset viewer.