WordPress.org

Make WordPress Core

Ticket #10928: page_thumbnails.php.diff

File page_thumbnails.php.diff, 1.5 KB (added by scribu, 4 years ago)
  • edit-page-form.php

     
    8080add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'page', 'normal', 'core'); 
    8181add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', 'page', 'normal', 'core'); 
    8282add_meta_box('slugdiv', __('Page Slug'), 'post_slug_meta_box', 'page', 'normal', 'core'); 
     83add_meta_box('postthumbnaildiv', __('Post Thumbnail'), 'post_thumbnail_meta_box', 'page', 'side', 'low'); 
    8384 
    8485$authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM 
    8586if ( $post->post_author && !in_array($post->post_author, $authors) ) 
  • page-new.php

     
    1818add_thickbox(); 
    1919wp_enqueue_script('media-upload'); 
    2020wp_enqueue_script('word-count'); 
     21wp_enqueue_script('set-post-thumbnail-handler'); 
    2122 
    2223if ( current_user_can('edit_pages') ) { 
    2324        $action = 'post'; 
  • page.php

     
    108108        add_thickbox(); 
    109109        wp_enqueue_script('media-upload'); 
    110110        wp_enqueue_script('word-count'); 
     111        wp_enqueue_script('set-post-thumbnail-handler'); 
    111112 
    112113        if ( $last = wp_check_post_lock( $post->ID ) ) { 
    113114                add_action('admin_notices', '_admin_notice_post_locked' );