Changeset 26242
- Timestamp:
- 11/17/2013 03:29:11 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r26241 r26242 634 634 function dashboard_relative_date( $time ) { 635 635 636 $diff = floor( ( $time - time() ) / DAY_IN_SECONDS ); 637 638 if ( $diff == 0 ) 636 $today = date( 'Y-m-d', current_time( 'timestamp' ) ); 637 $tomorrow = date( 'Y-m-d', strtotime( '+1 day', current_time( 'timestamp' ) ) ); 638 639 if ( date( 'Y-m-d', $time ) == $today ) 639 640 return __( 'Today' ); 640 641 641 if ( $diff == 1)642 if ( date( 'Y-m-d', $time ) == $tomorrow ) 642 643 return __( 'Tomorrow' ); 643 644
Note: See TracChangeset
for help on using the changeset viewer.