Ticket #2515: 2515.patch
| File 2515.patch, 1.6 KB (added by , 16 years ago) |
|---|
-
bp-activity/bp-activity-filters.php
102 102 function bp_activity_at_name_filter( $content ) { 103 103 include_once( ABSPATH . WPINC . '/registration.php' ); 104 104 105 $pattern = '/[@]+([A-Za-z0-9-_ ]+)/';105 $pattern = '/[@]+([A-Za-z0-9-_\.]+)/'; 106 106 preg_match_all( $pattern, $content, $usernames ); 107 107 108 108 /* Make sure there's only one instance of each username */ -
bp-activity/bp-activity-notifications.php
4 4 global $bp; 5 5 6 6 /* Scan for @username strings in an activity update. Notify each user. */ 7 $pattern = '/[@]+([A-Za-z0-9-_ ]+)/';7 $pattern = '/[@]+([A-Za-z0-9-_\.]+)/'; 8 8 preg_match_all( $pattern, $content, $usernames ); 9 9 10 10 /* Make sure there's only one instance of each username */ -
bp-groups/bp-groups-notifications.php
240 240 global $bp; 241 241 242 242 /* Scan for @username strings in an activity update. Notify each user. */ 243 $pattern = '/[@]+([A-Za-z0-9-_ ]+)/';243 $pattern = '/[@]+([A-Za-z0-9-_\.]+)/'; 244 244 preg_match_all( $pattern, $content, $usernames ); 245 245 246 246 /* Make sure there's only one instance of each username */