Changeset 6364 for trunk/wp-includes/general-template.php
- Timestamp:
- 12/06/2007 07:49:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r6343 r6364 165 165 $cat = get_query_var('cat'); 166 166 $tag = get_query_var('tag_id'); 167 $p = get_query_var('p');168 $name = get_query_var('name');169 167 $category_name = get_query_var('category_name'); 170 168 $author = get_query_var('author'); … … 386 384 $archive_week_end_date_format = get_option('date_format'); 387 385 } 388 389 $add_hours = intval(get_option('gmt_offset'));390 $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours));391 386 392 387 //filters … … 525 520 526 521 function get_calendar($initial = true) { 527 global $wpdb, $m, $monthnum, $year, $ timedifference, $wp_locale, $posts;522 global $wpdb, $m, $monthnum, $year, $wp_locale, $posts; 528 523 529 524 $key = md5( $m . $monthnum . $year ); … … 548 543 // week_begins = 0 stands for Sunday 549 544 $week_begins = intval(get_option('start_of_week')); 550 $add_hours = intval(get_option('gmt_offset'));551 $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours));552 545 553 546 // Let's figure out when we are … … 561 554 $thismonth = $wpdb->get_var("SELECT DATE_FORMAT((DATE_ADD('${thisyear}0101', INTERVAL $d DAY) ), '%m')"); 562 555 } elseif ( !empty($m) ) { 563 $calendar = substr($m, 0, 6);564 556 $thisyear = ''.intval(substr($m, 0, 4)); 565 557 if ( strlen($m) < 6 ) … … 756 748 757 749 function the_date($d='', $before='', $after='', $echo = true) { 758 global $ id, $post, $day, $previousday;750 global $post, $day, $previousday; 759 751 $the_date = ''; 760 752 if ( $day != $previousday ) { … … 843 835 844 836 function the_weekday() { 845 global $wp_locale, $ id, $post;837 global $wp_locale, $post; 846 838 $the_weekday = $wp_locale->get_weekday(mysql2date('w', $post->post_date)); 847 839 $the_weekday = apply_filters('the_weekday', $the_weekday); … … 851 843 852 844 function the_weekday_date($before='',$after='') { 853 global $wp_locale, $ id, $post, $day, $previousweekday;845 global $wp_locale, $post, $day, $previousweekday; 854 846 $the_weekday_date = ''; 855 847 if ( $day != $previousweekday ) {
Note: See TracChangeset
for help on using the changeset viewer.