mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
26eb1dc6ee
commit
14613e5595
@ -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