Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/24/2017 10:12:51 PM (9 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/replies/functions.php

    r6246 r6304  
    22692269 * @uses bbp_reply_content()
    22702270 * @uses get_wp_title_rss()
     2271 * @uses get_bloginfo_rss()
    22712272 * @uses get_option()
    2272  * @uses bloginfo_rss()
    22732273 * @uses self_link()
    22742274 * @uses the_author()
     
    22882288
    22892289    // Adjust the title based on context
    2290     if ( bbp_is_single_topic() && bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) {
     2290    if ( bbp_is_single_topic() ) {
    22912291        $title = apply_filters( 'wp_title_rss', get_wp_title_rss() );
    22922292    } elseif ( ! bbp_show_lead_topic() ) {
     
    22962296    }
    22972297
     2298    $title = apply_filters( 'wp_title_rss', $title );
     2299
    22982300    // Display the feed
    22992301    header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true );
     
    23112313
    23122314    <channel>
     2315
    23132316        <title><?php echo $title; ?></title>
    23142317        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
Note: See TracChangeset for help on using the changeset viewer.