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/post.php

    r27473 r27657  
    7575        'supports' => array( 'title', 'author', 'comments' ),
    7676    ) );
     77    add_post_type_support( 'attachment:audio', 'thumbnail' );
     78    add_post_type_support( 'attachment:video', 'thumbnail' );
    7779
    7880    register_post_type( 'revision', array(
Note: See TracChangeset for help on using the changeset viewer.