Changeset 773
- Timestamp:
- 01/14/04 05:10:32 (5 years ago)
- Files:
-
- trunk/wp-blog-header.php (modified) (1 diff)
- trunk/wp-includes/template-functions.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-blog-header.php
r761 r773 93 93 94 94 if ($day != '') { 95 $ hay = '' . intval($day);95 $day = '' . intval($day); 96 96 $where .= ' AND DAYOFMONTH(post_date)=' . $day; 97 97 } trunk/wp-includes/template-functions.php
r769 r773 78 78 function wp_title($sep = '»', $display = true) { 79 79 global $wpdb, $tableposts, $tablecategories; 80 global $year, $monthnum, $day, $cat, $p, $name ;80 global $year, $monthnum, $day, $cat, $p, $name, $month; 81 81 82 82 // If there's a category … … 98 98 $title = $year; 99 99 if (!empty($monthnum)) { 100 $title .= " $sep $monthnum";100 $title .= " $sep ".$month[zeroise($monthnum, 2)]; 101 101 } 102 102 if (!empty($day)) { 103 $title .= " $sep $day";103 $title .= " $sep ".zeroise($day, 2); 104 104 } 105 105 } … … 119 119 120 120 if ($day != '') { 121 $ hay = '' . intval($day);121 $day = '' . intval($day); 122 122 $where .= ' AND DAYOFMONTH(post_date)=' . $day; 123 123 } … … 488 488 $rewritereplace = array( 489 489 date('Y', $unixtime), 490 date(' n', $unixtime),491 date(' j', $unixtime),490 date('m', $unixtime), 491 date('d', $unixtime), 492 492 $post->post_name, 493 493 $post->ID … … 503 503 $rewritereplace = array( 504 504 date('Y', $unixtime), 505 date(' n', $unixtime),506 date(' j', $unixtime),505 date('m', $unixtime), 506 date('d', $unixtime), 507 507 $idpost->post_name, 508 508 $id … … 525 525 if ('/' != substr($monthlink, -1)) $monthlink = substr($monthlink, 0, -1); 526 526 $monthlink = str_replace('%year%', $year, $monthlink); 527 $monthlink = str_replace('%monthnum%', intval($month), $monthlink);527 $monthlink = str_replace('%monthnum%', zeroise(intval($month), 2), $monthlink); 528 528 $monthlink = str_replace('%post_id%', '', $monthlink); 529 529 return $siteurl . $monthlink; … … 544 544 if ('/' != substr($daylink, -1)) $daylink = substr($daylink, 0, -1); 545 545 $daylink = str_replace('%year%', $year, $daylink); 546 $daylink = str_replace('%monthnum%', intval($month), $daylink);547 $daylink = str_replace('%day%', intval($day), $daylink);546 $daylink = str_replace('%monthnum%', zeroise(intval($month), 2), $daylink); 547 $daylink = str_replace('%day%', zeroise(intval($day), 2), $daylink); 548 548 $daylink = str_replace('%post_id%', '', $daylink); 549 549 return $siteurl . $daylink;
