wp_title_rss

  • apply_filters( 'wp_title_rss', get_wp_title_rss( ' » ' ) )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 1297
       */
      function bbp_display_replies_feed_rss2( $replies_query = array() ) {
      
      	// User cannot access forum this topic is in
      	if ( bbp_is_single_topic() && !bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
      		return;
      
      	// Adjust the title based on context
      	if ( bbp_is_single_topic() && bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
      		$title = apply_filters( 'wp_title_rss', get_wp_title_rss( ' » ' ) );
      	elseif ( !bbp_show_lead_topic() )
      		$title = ' » ' .  __( 'All Posts',   'bbpress' );
      	else
      		$title = ' » ' .  __( 'All Replies', 'bbpress' );
      
      	// Display the feed
      	header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
      	header( 'Status: 200 OK' );
      	echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
      

Comments are closed.