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
This commit is contained in:
Ryan Boren 2006-06-15 07:32:06 +00:00
parent ef47214a7a
commit 8fbc24984c
1 changed files with 2 additions and 1 deletions

View File

@ -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 '</a>';
}