Changeset 44809 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 03/07/2019 09:11:37 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/dashboard.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r44759 r44809 859 859 echo '<ul>'; 860 860 861 $today = date( 'Y-m-d', current_time( 'timestamp' ) ); 862 $tomorrow = date( 'Y-m-d', strtotime( '+1 day', current_time( 'timestamp' ) ) ); 861 $today = current_time( 'Y-m-d' ); 862 $tomorrow = gmdate( 'Y-m-d', strtotime( '+1 day', current_time( 'timestamp' ) ) ); 863 $year = current_time( 'Y' ); 863 864 864 865 while ( $posts->have_posts() ) { … … 870 871 } elseif ( date( 'Y-m-d', $time ) == $tomorrow ) { 871 872 $relative = __( 'Tomorrow' ); 872 } elseif ( date( 'Y', $time ) !== date( 'Y', current_time( 'timestamp' ) )) {873 } elseif ( date( 'Y', $time ) !== $year ) { 873 874 /* translators: date and time format for recent posts on the dashboard, from a different calendar year, see https://secure.php.net/date */ 874 875 $relative = date_i18n( __( 'M jS Y' ), $time );
Note: See TracChangeset
for help on using the changeset viewer.