mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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' ) );
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user