WordPress.org

Make WordPress Core

Changeset 24997


Ignore:
Timestamp:
08/06/2013 06:41:10 PM (7 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed.php

    r24229 r24997  
    8484    if ( is_wp_error( $title ) )
    8585        return $title->get_error_message();
    86     $title = apply_filters('get_wp_title_rss', $title);
     86    $title = apply_filters( 'get_wp_title_rss', $title, $sep );
    8787    return $title;
    8888}
     
    9999 * @param string $sep Optional.
    100100 */
    101 function wp_title_rss($sep = '»') {
    102     echo apply_filters('wp_title_rss', get_wp_title_rss($sep));
     101function wp_title_rss( $sep = '»' ) {
     102    echo apply_filters( 'wp_title_rss', get_wp_title_rss( $sep ), $sep );
    103103}
    104104
Note: See TracChangeset for help on using the changeset viewer.