Make WordPress Core

Changeset 21162


Ignore:
Timestamp:
06/28/2012 07:58:43 PM (14 years ago)
Author:
nacin
Message:

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

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-media-list-table.php

    r19921 r21162  
    274274
    275275    case 'date':
    276         if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
     276        if ( '0000-00-00 00:00:00' == $post->post_date ) {
    277277            $t_time = $h_time = __( 'Unpublished' );
    278278        } else {
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r21047 r21162  
    562562
    563563            case 'date':
    564                 if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
     564                if ( '0000-00-00 00:00:00' == $post->post_date ) {
    565565                    $t_time = $h_time = __( 'Unpublished' );
    566566                    $time_diff = 0;
Note: See TracChangeset for help on using the changeset viewer.