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:
parent
57eb45641e
commit
7232568783
@ -273,7 +273,7 @@ foreach ( $columns as $column_name => $column_display_name ) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'date':
|
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' );
|
$t_time = $h_time = __( 'Unpublished' );
|
||||||
} else {
|
} else {
|
||||||
$t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
|
$t_time = get_the_time( __( 'Y/m/d g:i:s A' ) );
|
||||||
|
@ -561,7 +561,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'date':
|
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' );
|
$t_time = $h_time = __( 'Unpublished' );
|
||||||
$time_diff = 0;
|
$time_diff = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user