Remove dead conditionals from the media and post list tables. props wpmuguru, SergeyBiryukov. fixes #20781.

git-svn-id: https://develop.svn.wordpress.org/trunk@21162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-28 19:58:43 +00:00
parent 57eb45641e
commit 7232568783
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ foreach ( $columns as $column_name => $column_display_name ) {
break;
case 'date':
if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
if ( '0000-00-00 00:00:00' == $post->post_date ) {
$t_time = $h_time = __( 'Unpublished' );
} else {
$t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );

View File

@ -561,7 +561,7 @@ class WP_Posts_List_Table extends WP_List_Table {
break;
case 'date':
if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
if ( '0000-00-00 00:00:00' == $post->post_date ) {
$t_time = $h_time = __( 'Unpublished' );
$time_diff = 0;
} else {