diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
index 0f62ebc..aed23b3 100644
|
a
|
b
|
function wp_dashboard_recent_posts( $args ) {
|
| 606 | 606 | $posts->the_post(); |
| 607 | 607 | |
| 608 | 608 | $time = get_the_time( 'U' ); |
| | 609 | // hide future posts from users who shouldn't see them |
| | 610 | if ($time > time() && !current_user_can('edit_post')) { |
| | 611 | continue; |
| | 612 | } |
| | 613 | |
| 609 | 614 | if ( date( 'Y-m-d', $time ) == $today ) { |
| 610 | 615 | $relative = __( 'Today' ); |
| 611 | 616 | } elseif ( date( 'Y-m-d', $time ) == $tomorrow ) { |