Skip to:
Content

BuddyPress.org

Changeset 1152


Ignore:
Timestamp:
02/25/2009 04:57:21 AM (15 years ago)
Author:
apeatling
Message:

Fixes #523

File:
1 edited

Legend:

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

    r1052 r1152  
    168168        /* Switch 'their/your' depending on whether the user is logged in or not and viewing their profile */
    169169        if ( $filter_words ) {
    170             $content[0] = preg_replace( '/their/', 'your', $content[0] );
     170            $content[0] = preg_replace( '/their\s/', 'your ', $content[0] );
    171171        }
    172172
    173173        /* Remove the 'You' and replace if with the persons name */
    174174        if ( $filter_you && $full_name != '' ) {
    175             $content[0] = preg_replace( "/$full_name/", 'You', $content[0] );               
     175            $content[0] = preg_replace( "/{$full_name}[<]/", 'You<', $content[0] );             
    176176        }
    177177    }
Note: See TracChangeset for help on using the changeset viewer.