Changeset 31645 for trunk/src/wp-admin/edit-form-advanced.php
- Timestamp:
- 03/06/2015 08:25:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r31550 r31645 53 53 $thumbnail_support = current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' ); 54 54 if ( ! $thumbnail_support && 'attachment' === $post_type && $post->post_mime_type ) { 55 if ( 0 === strpos( $post->post_mime_type, 'audio/') ) {55 if ( wp_attachment_is( 'audio', $post ) ) { 56 56 $thumbnail_support = post_type_supports( 'attachment:audio', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:audio' ); 57 } elseif ( 0 === strpos( $post->post_mime_type, 'video/') ) {57 } elseif ( wp_attachment_is( 'video', $post ) ) { 58 58 $thumbnail_support = post_type_supports( 'attachment:video', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:video' ); 59 59 } … … 179 179 add_action( 'edit_form_after_title', 'edit_form_image_editor' ); 180 180 181 if ( 0 === strpos( $post->post_mime_type, 'audio/') ) {181 if ( wp_attachment_is( 'audio', $post ) ) { 182 182 add_meta_box( 'attachment-id3', __( 'Metadata' ), 'attachment_id3_data_meta_box', null, 'normal', 'core' ); 183 183 }
Note: See TracChangeset
for help on using the changeset viewer.