WordPress.org

Make WordPress Core

Ticket #8922: 8922_get_post_time.diff

File 8922_get_post_time.diff, 583 bytes (added by hailin, 5 years ago)

updated patch

  • C:/xampp/htdocs/wordpress_trunk/wp-includes/general-template.php

     
    12581258        else 
    12591259                $time = $post->post_date; 
    12601260 
    1261         $time = mysql2date($d, $time); 
    1262         return apply_filters('get_post_time', $time, $d, $gmt); 
     1261        $ts = mysql2date($d, $time); 
     1262        $ts2 = apply_filters('get_post_time', $ts, $d, $gmt); 
     1263         
     1264        return $ts2;  
    12631265} 
    12641266 
    12651267/**