From 1111b0c5febdf29cfc4ad3c5e5110dc618b82e69 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sun, 24 Jun 2007 06:25:49 +0000 Subject: [PATCH] Ordering and labeling niceties for the Manage > Posts screen. see #4446 git-svn-id: http://svn.automattic.com/wordpress/trunk@5751 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-post-rows.php | 6 +++++- wp-admin/edit.php | 19 +++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php index 099224f734..6723cc3460 100644 --- a/wp-admin/edit-post-rows.php +++ b/wp-admin/edit-post-rows.php @@ -29,7 +29,11 @@ foreach($posts_columns as $column_name=>$column_display_name) { + post_modified ) _e('Never'); else the_modified_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?> + post_modified ) _e('Unpublished'); else the_time(__('Y-m-d \<\b\r \/\> g:i:s a')); ?> diff --git a/wp-admin/edit.php b/wp-admin/edit.php index b79f6396b9..8bd400667d 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -30,12 +30,27 @@ if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($ 'display name' $posts_columns = array(); $posts_columns['id'] = '
' . __('ID') . '
'; -if ( !in_array($_GET['post_status'], array('pending', 'draft')) ) +if ( 'draft' === $_GET['post_status'] ) + $posts_columns['modified'] = __('Modified'); +elseif ( 'pending' === $_GET['post_status'] ) + $posts_columns['modified'] = __('Submitted'); +else $posts_columns['date'] = __('When'); $posts_columns['title'] = __('Title'); $posts_columns['categories'] = __('Categories');