Changeset 27657 for trunk/src/wp-admin/includes/image.php
- Timestamp:
- 03/23/2014 02:34:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r27472 r27657 128 128 } elseif ( preg_match( '#^video/#', get_post_mime_type( $attachment ) ) ) { 129 129 $metadata = wp_read_video_metadata( $file ); 130 $support = current_theme_supports( 'post-thumbnails', 'attachment:video' ) &&post_type_supports( 'attachment:video', 'thumbnail' );130 $support = current_theme_supports( 'post-thumbnails', 'attachment:video' ) || post_type_supports( 'attachment:video', 'thumbnail' ); 131 131 } elseif ( preg_match( '#^audio/#', get_post_mime_type( $attachment ) ) ) { 132 132 $metadata = wp_read_audio_metadata( $file ); 133 $support = current_theme_supports( 'post-thumbnails', 'attachment:audio' ) &&post_type_supports( 'attachment:audio', 'thumbnail' );133 $support = current_theme_supports( 'post-thumbnails', 'attachment:audio' ) || post_type_supports( 'attachment:audio', 'thumbnail' ); 134 134 } 135 135
Note: See TracChangeset
for help on using the changeset viewer.