From be9167fbda709bc7e2b51138ac82f76bca386571 Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@5751 602fd350-edb4-49c9-b593-d223f7449a82 --- 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');