Opened 13 years ago
Closed 13 years ago
#3945 closed defect (bug) (duplicate)
The at mentions functionality does not work when the username is followed by a full stop
Reported by: | kwerri | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.5.3 |
Component: | Activity | Keywords: | |
Cc: |
Description
Repro steps:
- Get a username of a user on a site that uses BuddyPress. Let's call this username.
- Make a comment on a post, including the text @username. (i.e. the at sign followed by username followed by a full stop.
- Observe that the username is not converted into a link to the user's BuddyPress profile.
The problem seems to be with the regex pattern that is used to determine at-mentions in posts. This is in the bp_activity_find_mentions functions in wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php
The pattern is /[@]+([A-Za-z0-9-_\.@]+)/, but it should be /[@]+([A-Za-z0-9-_\.@]+[A-Za-z0-9-_@])/
Change History (2)
Note: See
TracTickets for help on using
tickets.
See #3721.
This is fixed in trunk. Can you test the fix and see if it works for you?