Pass the $sep function argument to the wp_title_rss and get_wp_title_rss filters. props scribu, fixes #16983.
git-svn-id: https://develop.svn.wordpress.org/trunk@24997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ca59c0127b
commit
5e5f28dbc3
@ -83,7 +83,7 @@ function get_wp_title_rss($sep = '»') {
|
||||
$title = wp_title($sep, false);
|
||||
if ( is_wp_error( $title ) )
|
||||
return $title->get_error_message();
|
||||
$title = apply_filters('get_wp_title_rss', $title);
|
||||
$title = apply_filters( 'get_wp_title_rss', $title, $sep );
|
||||
return $title;
|
||||
}
|
||||
|
||||
@ -98,8 +98,8 @@ function get_wp_title_rss($sep = '»') {
|
||||
*
|
||||
* @param string $sep Optional.
|
||||
*/
|
||||
function wp_title_rss($sep = '»') {
|
||||
echo apply_filters('wp_title_rss', get_wp_title_rss($sep));
|
||||
function wp_title_rss( $sep = '»' ) {
|
||||
echo apply_filters( 'wp_title_rss', get_wp_title_rss( $sep ), $sep );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user