Changeset 1491
- Timestamp:
- 07/28/2004 02:43:54 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-blog-header.php
r1455 r1491 150 150 151 151 if (1 == count($posts)) { 152 if ( $p || $name) {152 if (is_single()) { 153 153 $more = 1; 154 154 $single = 1; -
trunk/wp-includes/classes.php
r1490 r1491 66 66 } 67 67 68 // If year, month, day, hour, minute, and second are set, a single 69 // post is being queried. 70 if (('' != $hour) && ('' != $minute) &&('' != $second) && ('' != $year) && ('' != $monthnum) && ('' != $day)) { 71 $this->single = true; 72 } 73 68 74 if (!empty($s)) { 69 75 $this->search = true; -
trunk/wp-includes/functions.php
r1489 r1491 1249 1249 1250 1250 $post = 0; 1251 if (strstr($struct, '%postname%') || strstr($struct, '%post_id%')) { 1251 if (strstr($struct, '%postname%') || strstr($struct, '%post_id%') 1252 || (strstr($struct, '%year%') && strstr($struct, '%monthnum%') && strstr($struct, '%day%') && strstr($struct, '%hour%') && strstr($struct, '%minute') && strstr($struct, '%second%'))) { 1252 1253 $post = 1; 1253 1254 $trackbackmatch = $match . $trackbackregex; -
trunk/wp-includes/template-functions-comment.php
r1435 r1491 18 18 19 19 function comments_template() { 20 global $withcomments, $ single, $post, $wpdb, $id, $comment, $cookiehash;21 22 if ( $single|| $withcomments ) :20 global $withcomments, $post, $wpdb, $id, $comment, $cookiehash; 21 22 if ( is_single() || $withcomments ) : 23 23 $req = get_settings('require_name_email'); 24 24 $comment_author = isset($_COOKIE['comment_author_'.$cookiehash]) ? trim(stripslashes($_COOKIE['comment_author_'.$cookiehash])) : ''; … … 72 72 global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb, $cookiehash; 73 73 global $querystring_start, $querystring_equal, $querystring_separator; 74 global $comment_count_cache, $single; 75 if (!$single) { 74 global $comment_count_cache; 75 76 if (! is_single()) { 76 77 if ('' == $comment_count_cache["$id"]) { 77 78 $number = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = '1';"); -
trunk/wp-includes/template-functions-general.php
r1460 r1491 99 99 function wp_title($sep = '»', $display = true) { 100 100 global $wpdb; 101 global $m, $year, $monthnum, $day, $cat, $p, $name, $month, $posts , $single;101 global $m, $year, $monthnum, $day, $cat, $p, $name, $month, $posts; 102 102 103 103 // If there's a category … … 129 129 130 130 // If there's a post 131 if ( $single) {131 if (is_single()) { 132 132 $title = strip_tags($posts[0]->post_title); 133 133 $title = apply_filters('single_post_title', $title); -
trunk/wp-trackback.php
r1376 r1491 16 16 } 17 17 18 if ( (($p != '') && ($p != 'all')) || ($name != '')) {18 if (is_single()) { 19 19 $tb_id = $posts[0]->ID; 20 20 }
Note: See TracChangeset
for help on using the changeset viewer.