WordPress.org

Make WordPress Core

Ticket #21987: general-template.php.patch

File general-template.php.patch, 476 bytes (added by soficgr, 19 months ago)
  • wp-includes/general-template.php

     
    14681468        $post = get_post($post); 
    14691469 
    14701470        if ( $gmt ) 
    1471                 $time = $post->post_date_gmt; 
     1471                $time = ('0000-00-00 00:00:00' == $post->post_date_gmt) ? get_gmt_from_date($post->post_date) : $post->post_date_gmt; 
    14721472        else 
    14731473                $time = $post->post_date; 
    14741474