diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 1ed1dd6b3..6355a9624 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -366,7 +366,8 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com if (!empty($CSSclass)) { echo ' class="'.$CSSclass.'"'; } - echo ' title="' . sprintf( __('Comment on %s'), $post->post_title ) .'">'; + $title = wp_specialchars(apply_filters('the_title', get_the_title())); + echo ' title="' . sprintf( __('Comment on %s'), $title ) .'">'; comments_number($zero, $one, $more, $number); echo ''; }