Skip to:
Content

BuddyPress.org

Changeset 1814


Ignore:
Timestamp:
09/07/2009 07:51:46 PM (17 years ago)
Author:
apeatling
Message:

Fixing the double "You" problem on activity items that contain users that have the same name. Fixes #915

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r1789 r1814  
    288288                /* Remove the 'You' and replace if with the persons name */
    289289                if ( $filter_you && $full_name != '' ) {
    290                         $content[0] = preg_replace( "/{$full_name}[<]/", 'You<', $content[0] );                         
     290                        $content[0] = preg_replace( "/{$full_name}[<]/", 'You<', $content[0], 1 );                             
    291291                }
    292292        }
  • trunk/bp-friends.php

    r1810 r1814  
    639639                        'item_id' => $friendship_id
    640640                ) );
     641
     642                $activity_content = apply_filters( 'bp_friends_friendship_accepted_activity', sprintf( __( '%s and %s are now friends', 'buddypress' ), $friend_link, $initiator_link ), &$friendship );
    641643               
    642644                /* Record in activity streams for the friend */
  • trunk/bp-groups.php

    r1809 r1814  
    14081408                'content' => false,
    14091409                'primary_link' => false,
    1410                 'component_name' => 'groups',
     1410                'component_name' => $bp->groups->id,
    14111411                'component_action' => false,
    14121412                'item_id' => false,
Note: See TracChangeset for help on using the changeset viewer.