diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index cac03b1fe3630..5af0ba19cd91a 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1012,8 +1012,8 @@ function wp_dashboard_recent_posts( $args ) { while ( $posts->have_posts() ) { $posts->the_post(); - $time = get_the_time( 'U' ); - + $time = intval( get_the_time( 'U' ) ); + if ( gmdate( 'Y-m-d', $time ) === $today ) { $relative = __( 'Today' ); } elseif ( gmdate( 'Y-m-d', $time ) === $tomorrow ) {