diff options
Diffstat (limited to 'wp-content/themes/default/comments-popup.php')
-rw-r--r-- | wp-content/themes/default/comments-popup.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wp-content/themes/default/comments-popup.php b/wp-content/themes/default/comments-popup.php index f22b861..3cd58a6 100644 --- a/wp-content/themes/default/comments-popup.php +++ b/wp-content/themes/default/comments-popup.php @@ -29,9 +29,8 @@ foreach ($posts as $post) { start_wp(); <?php // this line is WordPress' motor, do not delete it. -$comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : ''; -$comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : ''; -$comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : ''; +$commenter = wp_get_current_commenter(); +extract($commenter); $comments = get_approved_comments($id); $post = get_post($id); if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie |