Revert extra bits that snuck in with [12650]
git-svn-id: http://svn.automattic.com/wordpress/trunk@12651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -75,32 +75,26 @@ $user_ID = (int) $user_ID;
|
||||
|
||||
require_once('includes/meta-boxes.php');
|
||||
|
||||
$post_type = 'page';
|
||||
|
||||
add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', 'page', 'side', 'core');
|
||||
|
||||
if ( post_type_supports($post_type, 'page-attributes') )
|
||||
add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', $post_type, 'side', 'core');
|
||||
if ( post_type_supports($post_type, 'custom-fields') )
|
||||
add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', $post_type, 'normal', 'core');
|
||||
if ( post_type_supports($post_type, 'comments') )
|
||||
add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', $post_type, 'normal', 'core');
|
||||
add_meta_box('slugdiv', __('Page Slug'), 'post_slug_meta_box', $post_type, 'normal', 'core');
|
||||
if ( current_theme_supports( 'post-thumbnails', 'page' ) && post_type_supports($post_type, 'post-thumbnails') )
|
||||
add_meta_box('postimagediv', __('Page Image'), 'post_thumbnail_meta_box', $post_type, 'side', 'low');
|
||||
add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', 'page', 'side', 'core');
|
||||
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');
|
||||
if ( current_theme_supports( 'post-thumbnails', 'page' ) )
|
||||
add_meta_box('postimagediv', __('Page Image'), '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) )
|
||||
$authors[] = $post->post_author;
|
||||
if ( $authors && count( $authors ) > 1 )
|
||||
add_meta_box('pageauthordiv', __('Page Author'), 'post_author_meta_box', $post_type, 'normal', 'core');
|
||||
add_meta_box('pageauthordiv', __('Page Author'), 'post_author_meta_box', 'page', 'normal', 'core');
|
||||
|
||||
if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) )
|
||||
add_meta_box('revisionsdiv', __('Page Revisions'), 'post_revisions_meta_box', $post_type, 'normal', 'core');
|
||||
add_meta_box('revisionsdiv', __('Page Revisions'), 'post_revisions_meta_box', 'page', 'normal', 'core');
|
||||
|
||||
do_action('do_meta_boxes', $post_type, 'normal', $post);
|
||||
do_action('do_meta_boxes', $post_type, 'advanced', $post);
|
||||
do_action('do_meta_boxes', $post_type, 'side', $post);
|
||||
do_action('do_meta_boxes', 'page', 'normal', $post);
|
||||
do_action('do_meta_boxes', 'page', 'advanced', $post);
|
||||
do_action('do_meta_boxes', 'page', 'side', $post);
|
||||
|
||||
require_once('admin-header.php');
|
||||
?>
|
||||
@@ -134,7 +128,7 @@ require_once('admin-header.php');
|
||||
<div id="side-info-column" class="inner-sidebar">
|
||||
<?php
|
||||
do_action('submitpage_box');
|
||||
$side_meta_boxes = do_meta_boxes($post_type, 'side', $post); ?>
|
||||
$side_meta_boxes = do_meta_boxes('page', 'side', $post); ?>
|
||||
</div>
|
||||
|
||||
<div id="post-body">
|
||||
@@ -184,9 +178,9 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
do_meta_boxes($post_type, 'normal', $post);
|
||||
do_meta_boxes('page', 'normal', $post);
|
||||
do_action('edit_page_form');
|
||||
do_meta_boxes($post_type, 'advanced', $post);
|
||||
do_meta_boxes('page', 'advanced', $post);
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user