diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index e03474ad51..9881c51889 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -993,17 +993,33 @@ class WP_Posts_List_Table extends WP_List_Table { } if ( 'publish' === $post->post_status ) { - _e( 'Published' ); + $status = __( 'Published' ); } elseif ( 'future' === $post->post_status ) { if ( $time_diff > 0 ) { - echo '' . __( 'Missed schedule' ) . ''; + $status = '' . __( 'Missed schedule' ) . ''; } else { - _e( 'Scheduled' ); + $status = __( 'Scheduled' ); } } else { - _e( 'Last Modified' ); + $status = __( 'Last Modified' ); } - echo '
'; + + /** + * Filters the status text of the post. + * + * @since 4.8.0 + * + * @param string $status The status text. + * @param WP_Post $post Post object. + * @param string $column_name The column name. + * @param string $mode The list display mode ('excerpt' or 'list'). + */ + $status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode ); + + if ( $status ) { + echo $status . '
'; + } + if ( 'excerpt' === $mode ) { /** * Filters the published time of the post. diff --git a/wp-includes/version.php b/wp-includes/version.php index 1a7a792296..5d0f4ff4e7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40360'; +$wp_version = '4.8-alpha-40361'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.