From 557a8d242c21d8857735b130cfc6569b6c21d3f9 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Mon, 19 Oct 2009 14:44:17 +0000 Subject: [PATCH] Allow pages to have thumbnails too. Props scribu. see #10928 git-svn-id: http://svn.automattic.com/wordpress/trunk@12056 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-page-form.php | 1 + wp-admin/page-new.php | 1 + wp-admin/page.php | 1 + 3 files changed, 3 insertions(+) diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index c5f3d75f5..10b804125 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -80,6 +80,7 @@ add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', 'pag add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'page', 'normal', 'core'); add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', 'page', 'normal', 'core'); add_meta_box('slugdiv', __('Page Slug'), 'post_slug_meta_box', 'page', 'normal', 'core'); +add_meta_box('postthumbnaildiv', __('Post Thumbnail'), 'post_thumbnail_meta_box', 'page', 'side', 'low'); $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM if ( $post->post_author && !in_array($post->post_author, $authors) ) diff --git a/wp-admin/page-new.php b/wp-admin/page-new.php index c73c7fcba..eadcc4dba 100644 --- a/wp-admin/page-new.php +++ b/wp-admin/page-new.php @@ -18,6 +18,7 @@ if ( user_can_richedit() ) add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('word-count'); +wp_enqueue_script('set-post-thumbnail-handler'); if ( current_user_can('edit_pages') ) { $action = 'post'; diff --git a/wp-admin/page.php b/wp-admin/page.php index 4e3f64021..b660a43f0 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -108,6 +108,7 @@ case 'edit': add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('word-count'); + wp_enqueue_script('set-post-thumbnail-handler'); if ( $last = wp_check_post_lock( $post->ID ) ) { add_action('admin_notices', '_admin_notice_post_locked' );