Skip to:
Content

bbPress.org

Changeset 6224


Ignore:
Timestamp:
01/12/2017 11:14:24 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Feeds: Avoid duplicate site name in replies feed title.

Fixes #2998. Props SergeyBiryukov.

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r6196 r6224  
    22702270 * @uses get_wp_title_rss()
    22712271 * @uses get_option()
    2272  * @uses bloginfo_rss
     2272 * @uses bloginfo_rss()
    22732273 * @uses self_link()
    22742274 * @uses the_author()
     
    22892289    // Adjust the title based on context
    22902290    if ( bbp_is_single_topic() && bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) {
    2291         $title = apply_filters( 'wp_title_rss', get_wp_title_rss( ' » ' ) );
     2291        $title = apply_filters( 'wp_title_rss', get_wp_title_rss() );
    22922292    } elseif ( ! bbp_show_lead_topic() ) {
    2293         $title = ' » ' .  __( 'All Posts',   'bbpress' );
     2293        $title = get_bloginfo_rss( 'name' ) . ' » ' .  __( 'All Posts',   'bbpress' );
    22942294    } else {
    2295         $title = ' » ' .  __( 'All Replies', 'bbpress' );
     2295        $title = get_bloginfo_rss( 'name' ) . ' » ' .  __( 'All Replies', 'bbpress' );
    22962296    }
    22972297
     
    23112311
    23122312    <channel>
    2313         <title><?php bloginfo_rss('name'); echo $title; ?></title>
     2313        <title><?php echo $title; ?></title>
    23142314        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    23152315        <link><?php self_link(); ?></link>
  • trunk/src/includes/topics/functions.php

    r6219 r6224  
    40304030 * @uses bbp_topics()
    40314031 * @uses bbp_the_topic()
    4032  * @uses get_wp_title_rss()
    40334032 * @uses get_option()
    4034  * @uses bloginfo_rss
     4033 * @uses bloginfo_rss()
    40354034 * @uses self_link()
    40364035 * @uses the_author()
Note: See TracChangeset for help on using the changeset viewer.