Opened 15 years ago
Closed 15 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Activity | Version: | 1.5.3 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
See #3721.
This is fixed in trunk. Can you test the fix and see if it works for you?