Ticket #64496: 64496.diff
| File 64496.diff, 1.0 KB (added by , 2 months ago) |
|---|
-
src/wp-admin/includes/dashboard.php
1014 1014 1015 1015 $time = get_the_time( 'U' ); 1016 1016 1017 if ( gmdate( 'Y-m-d', $time ) === $today ) { 1017 if ( ! is_int( $time ) ) { 1018 $relative = ''; 1019 } elseif ( gmdate( 'Y-m-d', $time ) === $today ) { 1018 1020 $relative = __( 'Today' ); 1019 1021 } elseif ( gmdate( 'Y-m-d', $time ) === $tomorrow ) { 1020 1022 $relative = __( 'Tomorrow' ); … … 1033 1035 printf( 1034 1036 '<li><span>%1$s</span> <a href="%2$s" aria-label="%3$s">%4$s</a></li>', 1035 1037 /* translators: 1: Relative date, 2: Time. */ 1036 sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ),1038 $relative ? sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ) : '', 1037 1039 $recent_post_link, 1038 1040 /* translators: %s: Post title. */ 1039 1041 esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ),