WordPress.org

Make WordPress Core

Ticket #9730: 9730-wp-includes.diff

File 9730-wp-includes.diff, 4.2 KB (added by Denis-de-Bernardy, 6 years ago)

wp-includes area

  • wp-includes/feed-atom.php

     
    1919        <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 
    2020        <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> 
    2121 
    22         <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated> 
     22        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></updated> 
    2323        <?php the_generator( 'atom' ); ?> 
    2424 
    2525        <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> 
  • wp-includes/post.php

     
    14401440 
    14411441        if ( 'publish' == $post_status ) { 
    14421442                $now = gmdate('Y-m-d H:i:59'); 
    1443                 if ( mysql2date('U', $post_date_gmt) > mysql2date('U', $now) ) 
     1443                if ( mysql2date('U', $post_date_gmt, false) > mysql2date('U', $now, false) ) 
    14441444                        $post_status = 'future'; 
    14451445        } 
    14461446 
  • wp-includes/comment.php

     
    464464        if ( current_user_can( 'manage_options' ) ) 
    465465                return; // don't throttle admins 
    466466        if ( $lasttime = $wpdb->get_var( $wpdb->prepare("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author_IP = %s OR comment_author_email = %s ORDER BY comment_date DESC LIMIT 1", $ip, $email) ) ) { 
    467                 $time_lastcomment = mysql2date('U', $lasttime); 
    468                 $time_newcomment  = mysql2date('U', $date); 
     467                $time_lastcomment = mysql2date('U', $lasttime, false); 
     468                $time_newcomment  = mysql2date('U', $date, false); 
    469469                $flood_die = apply_filters('comment_flood_filter', false, $time_lastcomment, $time_newcomment); 
    470470                if ( $flood_die ) { 
    471471                        do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment); 
  • wp-includes/feed-atom-comments.php

     
    2424        ?></title> 
    2525        <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle> 
    2626 
    27         <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastcommentmodified('GMT')); ?></updated> 
     27        <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastcommentmodified('GMT'), false); ?></updated> 
    2828        <?php the_generator( 'atom' ); ?> 
    2929 
    3030<?php if ( is_singular() ) { ?> 
  • wp-includes/query.php

     
    26502650 
    26512651        $authordata = get_userdata($post->post_author); 
    26522652 
    2653         $day = mysql2date('d.m.y', $post->post_date); 
    2654         $currentmonth = mysql2date('m', $post->post_date); 
     2653        $day = mysql2date('d.m.y', $post->post_date, false); 
     2654        $currentmonth = mysql2date('m', $post->post_date, false); 
    26552655        $numpages = 1; 
    26562656        $page = get_query_var('page'); 
    26572657        if ( !$page ) 
  • wp-includes/general-template.php

     
    11781178 */ 
    11791179function the_date_xml() { 
    11801180        global $post; 
    1181         echo mysql2date('Y-m-d', $post->post_date); 
     1181        echo mysql2date('Y-m-d', $post->post_date, false); 
    11821182} 
    11831183 
    11841184/** 
     
    13521352 */ 
    13531353function the_weekday() { 
    13541354        global $wp_locale, $post; 
    1355         $the_weekday = $wp_locale->get_weekday(mysql2date('w', $post->post_date)); 
     1355        $the_weekday = $wp_locale->get_weekday(mysql2date('w', $post->post_date, false)); 
    13561356        $the_weekday = apply_filters('the_weekday', $the_weekday); 
    13571357        echo $the_weekday; 
    13581358} 
     
    13731373        $the_weekday_date = ''; 
    13741374        if ( $day != $previousweekday ) { 
    13751375                $the_weekday_date .= $before; 
    1376                 $the_weekday_date .= $wp_locale->get_weekday(mysql2date('w', $post->post_date)); 
     1376                $the_weekday_date .= $wp_locale->get_weekday(mysql2date('w', $post->post_date, false)); 
    13771377                $the_weekday_date .= $after; 
    13781378                $previousweekday = $day; 
    13791379        }