WordPress.org

Make WordPress Core

Ticket #29113: 29113.diff

File 29113.diff, 685 bytes (added by jkudish, 7 years ago)
  • wp-admin/edit-form-advanced.php

     
    183183if ( post_type_supports($post_type, 'page-attributes') )
    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
    189189if ( post_type_supports($post_type, 'excerpt') )