Make WordPress Core

Changeset 34005


Ignore:
Timestamp:
09/10/2015 05:42:55 PM (8 years ago)
Author:
wonderboymusic
Message:

In WP_Posts_List_Table::column_date(), the order of status and time should be switched. It doesn't make sense for phrases like "Last Modified" to occur AFTER the date. Should be before.

Props johnbillion, wonderboymusic.
Fixes #18641.

File:
1 edited

Legend:

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

    r33733 r34005  
    832832        }
    833833
     834        if ( 'publish' == $post->post_status ) {
     835            _e( 'Published' );
     836        } elseif ( 'future' == $post->post_status ) {
     837            if ( $time_diff > 0 ) {
     838                echo '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
     839            } else {
     840                _e( 'Scheduled' );
     841            }
     842        } else {
     843            _e( 'Last Modified' );
     844        }
     845        echo '<br />';
    834846        if ( 'excerpt' == $mode ) {
    835847            /**
     
    852864            /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
    853865            echo '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, 'date', $mode ) . '</abbr>';
    854         }
    855         echo '<br />';
    856         if ( 'publish' == $post->post_status ) {
    857             _e( 'Published' );
    858         } elseif ( 'future' == $post->post_status ) {
    859             if ( $time_diff > 0 ) {
    860                 echo '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
    861             } else {
    862                 _e( 'Scheduled' );
    863             }
    864         } else {
    865             _e( 'Last Modified' );
    866866        }
    867867    }
Note: See TracChangeset for help on using the changeset viewer.