Make WordPress Core

Ticket #39545: class-wp-posts-list-table.php.patch

File class-wp-posts-list-table.php.patch, 1.3 KB (added by pbearne, 8 years ago)

patch

  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    992992                }
    993993
    994994                if ( 'publish' === $post->post_status ) {
    995                         _e( 'Published' );
     995                        $status = __( 'Published' );
    996996                } elseif ( 'future' === $post->post_status ) {
    997997                        if ( $time_diff > 0 ) {
    998                                 echo '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
     998                                $status = '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
    999999                        } else {
    1000                                 _e( 'Scheduled' );
     1000                                $status = __( 'Scheduled' );
    10011001                        }
    10021002                } else {
    1003                         _e( 'Last Modified' );
     1003                        $status = __( 'Last Modified' );
    10041004                }
    1005                 echo '<br />';
     1005                /**
     1006                 * Filters the published status text of the post.                *
     1007                 *
     1008                 * @since 4.8
     1009                 *
     1010                 * @param string  $status      The Status text.
     1011                 * @param WP_Post $post        Post object.
     1012                 */
     1013                $status = apply_filters( "{$post->post_type}_date_column_status", $status, $post );
     1014
     1015        if ( '' !== trim( $status ) ) {
     1016               echo esc_html( $status . '<br />' );
     1017        }
     1018
    10061019                if ( 'excerpt' === $mode ) {
    10071020                        /**
    10081021                         * Filters the published time of the post.