fixed: filters applied several times on the_title* functions
git-svn-id: http://svn.automattic.com/wordpress/trunk@308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8a221eb40b
commit
d90a5160c3
@ -494,9 +494,10 @@ function the_title($before='', $after='') {
|
|||||||
$title = convert_bbcode($title);
|
$title = convert_bbcode($title);
|
||||||
$title = convert_gmcode($title);
|
$title = convert_gmcode($title);
|
||||||
$title = convert_smilies($title);
|
$title = convert_smilies($title);
|
||||||
$title = apply_filters('the_title', $title);
|
|
||||||
if ($title) {
|
if ($title) {
|
||||||
echo convert_chars($before.$title.$after, 'html');
|
$title = convert_chars($before.$title.$after);
|
||||||
|
$title = apply_filters('the_title', $title);
|
||||||
|
echo $title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function the_title_rss() {
|
function the_title_rss() {
|
||||||
@ -512,15 +513,15 @@ function the_title_unicode($before='',$after='') {
|
|||||||
$title = get_the_title();
|
$title = get_the_title();
|
||||||
$title = convert_bbcode($title);
|
$title = convert_bbcode($title);
|
||||||
$title = convert_gmcode($title);
|
$title = convert_gmcode($title);
|
||||||
$title = apply_filters('the_title_unicode', $title);
|
if ($title) {
|
||||||
if (trim($title)) {
|
$title = convert_chars($before.$title.$after);
|
||||||
echo convert_chars($before.$title.$after, 'unicode');
|
$title = apply_filters('the_title_unicode', $title);
|
||||||
|
echo $title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function get_the_title() {
|
function get_the_title() {
|
||||||
global $id, $post;
|
global $id, $post;
|
||||||
$output = stripslashes($post->post_title);
|
$output = stripslashes($post->post_title);
|
||||||
$output = apply_filters('the_title', $output);
|
|
||||||
return($output);
|
return($output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user