From 11704456ce1bc4967b4db3b0dc69b752005a5bb0 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 15 Jun 2006 07:32:06 +0000 Subject: [PATCH] Specialchars title. Props David House and Mark Jaquith. fixes #2625 git-svn-id: http://svn.automattic.com/wordpress/trunk@3874 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 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 ''; }