From 532baa4c5f4ffa08615f48967ded2b73150f40b0 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 10 Sep 2015 17:42:55 +0000 Subject: [PATCH] In `WP_Posts_List_Table::column_date()`, the order of status and time should be switched. It doesn't make sense for phrases like "Last Modified" to occur AFTER the date. Should be before. Props johnbillion, wonderboymusic. Fixes #18641. git-svn-id: https://develop.svn.wordpress.org/trunk@34005 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-posts-list-table.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 2c51601d4a..0ab6890648 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -831,6 +831,18 @@ class WP_Posts_List_Table extends WP_List_Table { } } + if ( 'publish' == $post->post_status ) { + _e( 'Published' ); + } elseif ( 'future' == $post->post_status ) { + if ( $time_diff > 0 ) { + echo '' . __( 'Missed schedule' ) . ''; + } else { + _e( 'Scheduled' ); + } + } else { + _e( 'Last Modified' ); + } + echo '
'; if ( 'excerpt' == $mode ) { /** * Filter the published time of the post. @@ -852,18 +864,6 @@ class WP_Posts_List_Table extends WP_List_Table { /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ echo '' . apply_filters( 'post_date_column_time', $h_time, $post, 'date', $mode ) . ''; } - echo '
'; - if ( 'publish' == $post->post_status ) { - _e( 'Published' ); - } elseif ( 'future' == $post->post_status ) { - if ( $time_diff > 0 ) { - echo '' . __( 'Missed schedule' ) . ''; - } else { - _e( 'Scheduled' ); - } - } else { - _e( 'Last Modified' ); - } } /**