mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
Remove dead conditionals from the media and post list tables. props wpmuguru, SergeyBiryukov. fixes #20781.
git-svn-id: http://core.svn.wordpress.org/trunk@21162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9810e75d46
commit
868ce1dfdd
@ -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