Make WordPress Core

Ticket #26671: dashboard.php.patch

File dashboard.php.patch, 506 bytes (added by ruud@…, 10 years ago)

wp_dashboard_recent_posts patch

  • htdocs/wp-admin/includes/dashboard.php

     
    599599                while ( $posts->have_posts() ) {
    600600                        $posts->the_post();
    601601
    602                         $time = get_the_time( 'U' );
     602                        $time = time();
    603603                        if ( date( 'Y-m-d', $time ) == $today ) {
    604604                                $relative = __( 'Today' );
    605605                        } elseif ( date( 'Y-m-d', $time ) == $tomorrow ) {