Ticket #35391: 35391.1.diff
File 35391.1.diff, 3.2 KB (added by , 5 years ago) |
---|
-
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 { 302 302 } 303 303 304 304 .fixed .column-posts, 305 .fixed .column-date,306 305 .fixed .column-parent, 307 306 .fixed .column-links, 308 307 .fixed .column-author, … … table.fixed { 310 309 width: 10%; 311 310 } 312 311 312 .fixed .column-date { 313 width: 14%; 314 } 315 313 316 .column-date span[title] { 314 317 -webkit-text-decoration: dotted underline; 315 318 text-decoration: dotted underline; … … table.media .column-title .filename { 397 400 width: 20%; 398 401 } 399 402 400 #comments-form .fixed .column-date {401 width: 14%;402 }403 404 403 #commentsdiv.postbox .inside { 405 404 margin: 0; 406 405 padding: 0; … … div.action-links, 1653 1652 .plugin-card .desc p:first-of-type { 1654 1653 margin-top: 0; 1655 1654 } 1656 1657 .fixed .column-date {1658 width: 14%;1659 }1660 1655 } 1661 1656 1662 1657 @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 { 1074 1074 /* translators: %s: Human-readable time difference. */ 1075 1075 $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); 1076 1076 } 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 ); 1078 1084 } 1079 1085 } 1080 1086 … … class WP_Posts_List_Table extends WP_List_Table { 1106 1112 echo $status . '<br />'; 1107 1113 } 1108 1114 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 ); 1130 1127 } 1131 1128 1132 1129 /**