Skip to:
Content

BuddyPress.org

Ticket #2515: 2515.patch

File 2515.patch, 1.6 KB (added by sorich87, 14 years ago)
  • bp-activity/bp-activity-filters.php

     
    102102function bp_activity_at_name_filter( $content ) {
    103103        include_once( ABSPATH . WPINC . '/registration.php' );
    104104
    105         $pattern = '/[@]+([A-Za-z0-9-_]+)/';
     105        $pattern = '/[@]+([A-Za-z0-9-_\.]+)/';
    106106        preg_match_all( $pattern, $content, $usernames );
    107107
    108108        /* Make sure there's only one instance of each username */
  • bp-activity/bp-activity-notifications.php

     
    44        global $bp;
    55
    66        /* Scan for @username strings in an activity update. Notify each user. */
    7         $pattern = '/[@]+([A-Za-z0-9-_]+)/';
     7        $pattern = '/[@]+([A-Za-z0-9-_\.]+)/';
    88        preg_match_all( $pattern, $content, $usernames );
    99
    1010        /* Make sure there's only one instance of each username */
  • bp-groups/bp-groups-notifications.php

     
    240240        global $bp;
    241241
    242242        /* Scan for @username strings in an activity update. Notify each user. */
    243         $pattern = '/[@]+([A-Za-z0-9-_]+)/';
     243        $pattern = '/[@]+([A-Za-z0-9-_\.]+)/';
    244244        preg_match_all( $pattern, $content, $usernames );
    245245
    246246        /* Make sure there's only one instance of each username */