Ticket #28327: 28327.2.diff
File 28327.2.diff, 898 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/edit-form-advanced.php
40 40 } 41 41 } 42 42 43 if ( $thumbnail_support ) {43 if ( $thumbnail_support && current_user_can( 'upload_files' ) ) { 44 44 add_thickbox(); 45 45 wp_enqueue_media( array( 'post' => $post_ID ) ); 46 46 } … … 183 183 if ( post_type_supports($post_type, 'page-attributes') ) 184 184 add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', null, 'side', 'core'); 185 185 186 if ( $thumbnail_support )186 if ( $thumbnail_support && current_user_can( 'upload_files' ) ) 187 187 add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', null, 'side', 'low'); 188 188 189 189 if ( post_type_supports($post_type, 'excerpt') )