Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/24/2017 10:12:51 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Feeds: Allow feed titles to be filtered (using the WordPress filter name.)

Also removes redundant conditional in replies feed.

Props SergeyBiryukov. Fixes #3064.

File:
1 edited

Legend:

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

    r6269 r6304  
    40904090 * @uses bbp_topics()
    40914091 * @uses bbp_the_topic()
     4092 * @uses get_bloginfo_rss()
    40924093 * @uses get_option()
    4093  * @uses bloginfo_rss()
    40944094 * @uses self_link()
    40954095 * @uses the_author()
     
    41084108    }
    41094109
     4110    // Feed title
     4111    $title = get_bloginfo_rss( 'name' ) . ' » ' . __( 'All Topics', 'bbpress' );
     4112    $title = apply_filters( 'wp_title_rss', $title );
     4113
    41104114    // Display the feed
    41114115    header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true );
     
    41244128    <channel>
    41254129
    4126         <title><?php bloginfo_rss( 'name' ); ?> &#187; <?php _e( 'All Topics', 'bbpress' ); ?></title>
     4130        <title><?php echo $title; ?></title>
    41274131        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    41284132        <link><?php self_link(); ?></link>
Note: See TracChangeset for help on using the changeset viewer.