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
This commit is contained in:
Scott Taylor 2015-09-10 17:42:55 +00:00
parent f5ce2ba96d
commit 532baa4c5f

View File

@ -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 '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
} else {
_e( 'Scheduled' );
}
} else {
_e( 'Last Modified' );
}
echo '<br />';
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 '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, 'date', $mode ) . '</abbr>';
}
echo '<br />';
if ( 'publish' == $post->post_status ) {
_e( 'Published' );
} elseif ( 'future' == $post->post_status ) {
if ( $time_diff > 0 ) {
echo '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
} else {
_e( 'Scheduled' );
}
} else {
_e( 'Last Modified' );
}
}
/**