Add Pages->Drafts
git-svn-id: https://develop.svn.wordpress.org/trunk@9038 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
119280586f
commit
1661e06111
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
$locked_post_status = 'draft';
|
||||
$_GET['post_status'] = 'draft';
|
||||
require_once('admin.php');
|
||||
$title = __('View Draft Pages');
|
||||
require_once('edit-pages.php');
|
||||
|
||||
?>
|
|
@ -65,7 +65,8 @@ if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2']
|
|||
exit;
|
||||
}
|
||||
|
||||
$title = __('Pages');
|
||||
if ( empty($title) )
|
||||
$title = __('View All Pages');
|
||||
$parent_file = 'edit.php';
|
||||
wp_enqueue_script('admin-forms');
|
||||
wp_enqueue_script('inline-edit');
|
||||
|
@ -142,7 +143,7 @@ endif; ?>
|
|||
<?php
|
||||
|
||||
$avail_post_stati = get_available_post_statuses('page');
|
||||
|
||||
if ( empty($locked_post_status) ) :
|
||||
$status_links = array();
|
||||
$num_posts = wp_count_posts('page', 'readable');
|
||||
$class = empty($_GET['post_status']) ? ' class="current"' : '';
|
||||
|
@ -161,6 +162,7 @@ foreach ( $post_stati as $status => $label ) {
|
|||
}
|
||||
echo implode(' |</li>', $status_links) . '</li>';
|
||||
unset($status_links);
|
||||
endif;
|
||||
?>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ $menu[15] = array( __('Links'), 'manage_links', 'link-add.php' );
|
|||
|
||||
$menu[20] = array( __('Pages'), 'edit_pages', 'page-new.php' );
|
||||
$submenu['page-new.php'][5] = array( __('Write'), 'edit_pages', 'page-new.php' );
|
||||
//$submenu['page-new.php'][10] = array( __('Drafts'), 'edit_pages', 'edit-pages.php?post_status=draft' );
|
||||
$submenu['page-new.php'][10] = array( __('Drafts'), 'edit_pages', 'edit-page-drafts.php' );
|
||||
$submenu['page-new.php'][15] = array( __('View All'), 'edit_pages', 'edit-pages.php' );
|
||||
|
||||
$menu[25] = array( __('Comments'), 'edit_posts', 'edit-comments.php' );
|
||||
|
|
Loading…
Reference in New Issue