Changeset 1491 for trunk/wp-includes/template-functions-comment.php
- Timestamp:
- 07/28/2004 02:43:54 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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';");
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)