Add Pages->Drafts

git-svn-id: http://svn.automattic.com/wordpress/trunk@9038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-09-30 17:51:50 +00:00
parent eef17ba0a5
commit ec4ce0db91
3 changed files with 13 additions and 3 deletions
+4 -2
View File
@@ -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>