Pass the $sep function argument to the wp_title_rss and get_wp_title_rss filters. props scribu, fixes #16983.

git-svn-id: http://core.svn.wordpress.org/trunk@24997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-06 18:41:10 +00:00
parent 26eb1dc6ee
commit 14613e5595

View File

@ -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 );
}
/**