Changeset 1768 for trunk/wp-includes/template-functions-comment.php
- Timestamp:
- 10/10/2004 06:02:30 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-comment.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-comment.php
r1726 r1768 18 18 19 19 function comments_template() { 20 global $withcomments, $post, $wpdb, $id, $comment , $cookiehash;20 global $withcomments, $post, $wpdb, $id, $comment; 21 21 22 22 if ( is_single() || $withcomments ) : 23 23 $req = get_settings('require_name_email'); 24 $comment_author = isset($_COOKIE['comment_author_'. $cookiehash]) ? trim(stripslashes($_COOKIE['comment_author_'.$cookiehash])) : '';25 $comment_author_email = isset($_COOKIE['comment_author_email_'. $cookiehash]) ? trim(stripslashes($_COOKIE['comment_author_email_'.$cookiehash])) : '';26 $comment_author_url = isset($_COOKIE['comment_author_url_'. $cookiehash]) ? trim(stripslashes($_COOKIE['comment_author_url_'.$cookiehash])) : '';24 $comment_author = isset($_COOKIE['comment_author_'.COOKIEHASH]) ? trim(stripslashes($_COOKIE['comment_author_'.COOKIEHASH])) : ''; 25 $comment_author_email = isset($_COOKIE['comment_author_email_'.COOKIEHASH]) ? trim(stripslashes($_COOKIE['comment_author_email_'.COOKIEHASH])) : ''; 26 $comment_author_url = isset($_COOKIE['comment_author_url_'.COOKIEHASH]) ? trim(stripslashes($_COOKIE['comment_author_url_'.COOKIEHASH])) : ''; 27 27 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date"); 28 28 … … 91 91 92 92 function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Comments', $CSSclass='', $none='Comments Off') { 93 global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb , $cookiehash;93 global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb; 94 94 global $querystring_start, $querystring_equal, $querystring_separator; 95 95 global $comment_count_cache; … … 106 106 } else { 107 107 if (!empty($post->post_password)) { // if there's a password 108 if ($_COOKIE['wp-postpass_'. $cookiehash] != $post->post_password) { // and it doesn't match the cookie108 if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie 109 109 echo('Enter your password to view comments'); 110 110 return;
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)