Changeset 659
- Timestamp:
- 12/28/2003 09:45:18 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions.php
r653 r659 517 517 $monthlink = str_replace('%year%', $year, $monthlink); 518 518 $monthlink = str_replace('%monthnum%', intval($month), $monthlink); 519 return $ monthlink;519 return $siteurl . $monthlink; 520 520 } else { 521 521 return $siteurl.'/'.$blogfilename.$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2); … … 536 536 $daylink = str_replace('%monthnum%', intval($month), $daylink); 537 537 $daylink = str_replace('%day%', intval($day), $daylink); 538 return $ daylink;538 return $siteurl . $daylink; 539 539 } else { 540 540 return $siteurl.'/'.$blogfilename.$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2).zeroise($day, 2); … … 1308 1308 // Get any static stuff from the front 1309 1309 $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); 1310 $link = $ front . 'category/' . $category_nicename;1310 $link = $siteurl . $front . 'category/' . $category_nicename; 1311 1311 } 1312 1312 … … 1550 1550 global $querystring_start, $querystring_equal, $querystring_separator, $siteurl; 1551 1551 $number = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'"); 1552 if (0 == $number && 'closed' == $post->comment_status ) {1552 if (0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status) { 1553 1553 echo $none; 1554 1554 return;
Note: See TracChangeset
for help on using the changeset viewer.