mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
Specialchars title. Props David House and Mark Jaquith. fixes #2625
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ed480389cd
commit
ab7f591796
@ -328,7 +328,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>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user