Changeset 40361
- Timestamp:
- 04/01/2017 02:07:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r40309 r40361 994 994 995 995 if ( 'publish' === $post->post_status ) { 996 _e( 'Published' );996 $status = __( 'Published' ); 997 997 } elseif ( 'future' === $post->post_status ) { 998 998 if ( $time_diff > 0 ) { 999 echo'<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';999 $status = '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>'; 1000 1000 } else { 1001 _e( 'Scheduled' );1001 $status = __( 'Scheduled' ); 1002 1002 } 1003 1003 } else { 1004 _e( 'Last Modified' ); 1005 } 1006 echo '<br />'; 1004 $status = __( 'Last Modified' ); 1005 } 1006 1007 /** 1008 * Filters the status text of the post. 1009 * 1010 * @since 4.8.0 1011 * 1012 * @param string $status The status text. 1013 * @param WP_Post $post Post object. 1014 * @param string $column_name The column name. 1015 * @param string $mode The list display mode ('excerpt' or 'list'). 1016 */ 1017 $status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode ); 1018 1019 if ( $status ) { 1020 echo $status . '<br />'; 1021 } 1022 1007 1023 if ( 'excerpt' === $mode ) { 1008 1024 /**
Note: See TracChangeset
for help on using the changeset viewer.