Skip to:
Content

BuddyPress.org

Ticket #3226: fix-showing-appropriate-feed-names.patch

File fix-showing-appropriate-feed-names.patch, 3.4 KB (added by jefferai, 13 years ago)
  • wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php

    diff --git a/wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php b/wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php
    index c7e1f15..997eea8 100644
    a b function bp_activities_member_rss_link() { echo bp_get_member_activity_feed_link 
    10001000                else if ( 'mentions' == $bp->current_action )
    10011001                        $link = $bp->displayed_user->domain . $bp->activity->slug . '/mentions/feed/';
    10021002
    1003                 return apply_filters( 'bp_get_activities_member_rss_link', $link );
     1003                return apply_filters( 'bp_get_activities_member_feed_link', $link );
    10041004        }
    10051005        function bp_get_activities_member_rss_link() { return bp_get_member_activity_feed_link(); }
    10061006
     1007function bp_get_member_current_activity_feed_title() {
     1008  global $bp;
     1009
     1010  if ( $bp->current_component == $bp->profile->slug || 'just-me' == $bp->current_action )
     1011    $name = 'Personal';
     1012  else if ( 'friends' == $bp->current_action )
     1013    $name = 'Friends';
     1014  else if ( 'groups' == $bp->current_action )
     1015    $name = 'Groups';
     1016  else if ( 'favorites' == $bp->current_action )
     1017    $name = 'Favorites';
     1018  else if ( 'mentions' == $bp->current_action )
     1019    $name = 'Mentions';
     1020  else if ( 'blogs' == $bp->current_action )
     1021    $name = 'Blogs';
     1022
     1023  return apply_filters( 'bp_get_activity_current_feed_title', $name );
     1024}
     1025 function bp_member_current_activity_feed_title() { return bp_get_member_current_activity_feed_title(); }
     1026 function bp_member_current_activity_rss_title() { return bp_get_member_current_activity_feed_title(); }
    10071027
    10081028/* Template tags for RSS feed output */
    10091029
    function bp_activity_feed_item_description() { 
    10711091                return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content ) ) );
    10721092        }
    10731093
    1074 ?>
    1075  No newline at end of file
     1094?>
  • wp-content/plugins/buddypress/bp-themes/bp-default/header.php

    diff --git a/wp-content/plugins/buddypress/bp-themes/bp-default/header.php b/wp-content/plugins/buddypress/bp-themes/bp-default/header.php
    index 158053d..d0bfcac 100644
    a b  
    1818                        <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
    1919                <?php endif; ?>
    2020
    21                 <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
    22                         <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
     21                <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() && bp_is_activity_component() ) : ?>
     22                        <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( bp_member_current_activity_rss_title() . ' Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
    2323                <?php endif; ?>
    2424
    2525                <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
     
    108108                <?php do_action( 'bp_after_header' ) ?>
    109109                <?php do_action( 'bp_before_container' ) ?>
    110110
    111                 <div id="container">
    112  No newline at end of file
     111                <div id="container">