Ticket #9730: 9730-wp-includes.diff
File 9730-wp-includes.diff, 4.2 KB (added by , 16 years ago) |
---|
-
wp-includes/feed-atom.php
19 19 <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 20 20 <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> 21 21 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> 23 23 <?php the_generator( 'atom' ); ?> 24 24 25 25 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> -
wp-includes/post.php
1440 1440 1441 1441 if ( 'publish' == $post_status ) { 1442 1442 $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) ) 1444 1444 $post_status = 'future'; 1445 1445 } 1446 1446 -
wp-includes/comment.php
464 464 if ( current_user_can( 'manage_options' ) ) 465 465 return; // don't throttle admins 466 466 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); 469 469 $flood_die = apply_filters('comment_flood_filter', false, $time_lastcomment, $time_newcomment); 470 470 if ( $flood_die ) { 471 471 do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment); -
wp-includes/feed-atom-comments.php
24 24 ?></title> 25 25 <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle> 26 26 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> 28 28 <?php the_generator( 'atom' ); ?> 29 29 30 30 <?php if ( is_singular() ) { ?> -
wp-includes/query.php
2650 2650 2651 2651 $authordata = get_userdata($post->post_author); 2652 2652 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); 2655 2655 $numpages = 1; 2656 2656 $page = get_query_var('page'); 2657 2657 if ( !$page ) -
wp-includes/general-template.php
1178 1178 */ 1179 1179 function the_date_xml() { 1180 1180 global $post; 1181 echo mysql2date('Y-m-d', $post->post_date );1181 echo mysql2date('Y-m-d', $post->post_date, false); 1182 1182 } 1183 1183 1184 1184 /** … … 1352 1352 */ 1353 1353 function the_weekday() { 1354 1354 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)); 1356 1356 $the_weekday = apply_filters('the_weekday', $the_weekday); 1357 1357 echo $the_weekday; 1358 1358 } … … 1373 1373 $the_weekday_date = ''; 1374 1374 if ( $day != $previousweekday ) { 1375 1375 $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)); 1377 1377 $the_weekday_date .= $after; 1378 1378 $previousweekday = $day; 1379 1379 }