Changeset 31645 for trunk/src/wp-includes/media.php
- Timestamp:
- 03/06/2015 08:25:09 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r31574 r31645 2977 2977 $thumbnail_support = current_theme_supports( 'post-thumbnails', $post->post_type ) && post_type_supports( $post->post_type, 'thumbnail' ); 2978 2978 if ( ! $thumbnail_support && 'attachment' === $post->post_type && $post->post_mime_type ) { 2979 if ( 0 === strpos( $post->post_mime_type, 'audio/') ) {2979 if ( wp_attachment_is( 'audio', $post ) ) { 2980 2980 $thumbnail_support = post_type_supports( 'attachment:audio', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:audio' ); 2981 } elseif ( 0 === strpos( $post->post_mime_type, 'video/') ) {2981 } elseif ( wp_attachment_is( 'video', $post ) ) { 2982 2982 $thumbnail_support = post_type_supports( 'attachment:video', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:video' ); 2983 2983 }
Note: See TracChangeset
for help on using the changeset viewer.