Make WordPress Core

Ticket #35391: 35391.1.diff

File 35391.1.diff, 3.2 KB (added by audrasjb, 5 years ago)

Refreshes the patch and adds some fresh docs

  • src/wp-admin/css/list-tables.css

    diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css
    index 4e4f75aba5..b7629a131b 100644
    a b table.fixed { 
    302302}
    303303
    304304.fixed .column-posts,
    305 .fixed .column-date,
    306305.fixed .column-parent,
    307306.fixed .column-links,
    308307.fixed .column-author,
    table.fixed { 
    310309        width: 10%;
    311310}
    312311
     312.fixed .column-date {
     313        width: 14%;
     314}
     315
    313316.column-date span[title] {
    314317        -webkit-text-decoration: dotted underline;
    315318        text-decoration: dotted underline;
    table.media .column-title .filename { 
    397400        width: 20%;
    398401}
    399402
    400 #comments-form .fixed .column-date {
    401         width: 14%;
    402 }
    403 
    404403#commentsdiv.postbox .inside {
    405404        margin: 0;
    406405        padding: 0;
    div.action-links, 
    16531652        .plugin-card .desc p:first-of-type {
    16541653                margin-top: 0;
    16551654        }
    1656 
    1657         .fixed .column-date {
    1658                 width: 14%;
    1659         }
    16601655}
    16611656
    16621657@media screen and (max-width: 782px) {
  • src/wp-admin/includes/class-wp-posts-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php
    index ee7750c12a..1d6178f53b 100644
    a b class WP_Posts_List_Table extends WP_List_Table { 
    10741074                                /* translators: %s: Human-readable time difference. */
    10751075                                $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
    10761076                        } else {
    1077                                 $h_time = get_the_time( __( 'Y/m/d' ), $post );
     1077                                $h_time = sprintf(
     1078                                        /* translators: 1: post date, 2: post time */
     1079                                        __( '%1$s at %2$s' ),
     1080                                        /* translators: post date format. See http://php.net/date */
     1081                                        mysql2date( __( 'Y/m/d' ), $t_time ),
     1082                                        mysql2date( __( 'g:i a' ), $t_time )
     1083                                );
    10781084                        }
    10791085                }
    10801086
    class WP_Posts_List_Table extends WP_List_Table { 
    11061112                        echo $status . '<br />';
    11071113                }
    11081114
    1109                 if ( 'excerpt' === $mode ) {
    1110                         /**
    1111                          * Filters the published time of the post.
    1112                          *
    1113                          * If `$mode` equals 'excerpt', the published time and date are both displayed.
    1114                          * If `$mode` equals 'list' (default), the publish date is displayed, with the
    1115                          * time and date together available as an abbreviation definition.
    1116                          *
    1117                          * @since 2.5.1
    1118                          *
    1119                          * @param string  $t_time      The published time.
    1120                          * @param WP_Post $post        Post object.
    1121                          * @param string  $column_name The column name.
    1122                          * @param string  $mode        The list display mode ('excerpt' or 'list').
    1123                          */
    1124                         echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );
    1125                 } else {
    1126 
    1127                         /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
    1128                         echo '<span title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, 'date', $mode ) . '</span>';
    1129                 }
     1115                /**
     1116                 * Filters the published time of the post.
     1117                 *
     1118                 * @since 2.5.1
     1119                 * @since 5.4.0 Removed the difference between 'excerpt' and 'list' modes.
     1120                 *
     1121                 * @param string  $t_time      The published time.
     1122                 * @param WP_Post $post        Post object.
     1123                 * @param string  $column_name The column name.
     1124                 * @param string  $mode        Optional. The list display mode ('excerpt' or 'list').
     1125                 */
     1126                echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );
    11301127        }
    11311128
    11321129        /**