Make WordPress Core


Ignore:
Timestamp:
03/23/2014 02:34:39 AM (10 years ago)
Author:
wonderboymusic
Message:

Turn on thumbnail support for attachment:audio and attachment:video. Change conditionals to check for theme OR post type support when determining whether to turn on the Featured Image UI pieces in the admin.

Fixes #27460.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r27655 r27657  
    24462446        );
    24472447
    2448         if ( theme_supports_thumbnails( $post ) && post_supports_thumbnails( $post ) ) {
     2448        if ( theme_supports_thumbnails( $post ) || post_supports_thumbnails( $post ) ) {
    24492449            $featured_image_id = get_post_meta( $post->ID, '_thumbnail_id', true );
    24502450            $settings['post']['featuredImageId'] = $featured_image_id ? $featured_image_id : -1;
Note: See TracChangeset for help on using the changeset viewer.