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:
nacin 2012-06-28 19:58:43 +00:00
parent 9810e75d46
commit 868ce1dfdd
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 {