Changeset 1152 for trunk/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 02/25/2009 04:57:21 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r1052 r1152 168 168 /* Switch 'their/your' depending on whether the user is logged in or not and viewing their profile */ 169 169 if ( $filter_words ) { 170 $content[0] = preg_replace( '/their /', 'your', $content[0] );170 $content[0] = preg_replace( '/their\s/', 'your ', $content[0] ); 171 171 } 172 172 173 173 /* Remove the 'You' and replace if with the persons name */ 174 174 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] ); 176 176 } 177 177 }
Note: See TracChangeset
for help on using the changeset viewer.