WordPress.org

Make WordPress Core

Changeset 29402


Ignore:
Timestamp:
08/06/2014 05:16:45 PM (7 years ago)
Author:
wonderboymusic
Message:

Don't show the Featured Image metabox for users with the contributor role. Do enqueue media so that TinyMCE previews work for YouTube embeds, etc.

Props SergeyBiryukov.
Fixes #28327.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r29336 r29402  
    184184    add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', null, 'side', 'core');
    185185
    186 if ( $thumbnail_support )
     186if ( $thumbnail_support && current_user_can( 'upload_files' ) )
    187187    add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', null, 'side', 'low');
    188188
Note: See TracChangeset for help on using the changeset viewer.