From 8fbc24984cba1aa241d8ca3ba833219f673574cc Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 15 Jun 2006 07:32:06 +0000 Subject: [PATCH] Specialchars title. Props David House and Mark Jaquith. fixes #2625 git-svn-id: https://develop.svn.wordpress.org/trunk@3874 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 1ed1dd6b3f..6355a96248 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 ''; }