WordPress.org

Make WordPress Core

Changeset 12056


Ignore:
Timestamp:
10/19/2009 02:44:17 PM (9 years ago)
Author:
markjaquith
Message:

Allow pages to have thumbnails too. Props scribu. see #10928

Location:
trunk/wp-admin
Files:
3 edited

Legend:

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

    r12029 r12056  
    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
  • trunk/wp-admin/page-new.php

    r12022 r12056  
    1919wp_enqueue_script('media-upload');
    2020wp_enqueue_script('word-count');
     21wp_enqueue_script('set-post-thumbnail-handler');
    2122
    2223if ( current_user_can('edit_pages') ) {
  • trunk/wp-admin/page.php

    r12029 r12056  
    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 ) ) {
Note: See TracChangeset for help on using the changeset viewer.