Opened 4 months ago
Closed 4 months ago
#2190 closed defect (fixed)
BuddyPress: "Replies Created" pagination doesn't work under profile
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | BuddyPress | Version: | 2.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Steps to reproduce:
- Make sure a user has enough total replies to cause pagination.
- Navigate to /members/USERNAME/forums/replies/
- Attempt to click on the second page in the pagination links.
- Pagination link looks like this:
domain.com/members/page/2/
Which is invalid; link should look like this:
domain.com/members/USERNAME/forums/replies/page/2/
Tested on trunk.
Why is this happening?
Problem occurs during the construction of the pagination links in bbp_has_replies().
Attached patch changes how the $base variable is constructed so a check is done in bbp_is_single_user() as well and moves the is_page() check lower in the stack.
This mirrors how bp_has_topics() works.
Attachments (1)
Change History (3)
comment:1
johnjamesjacoby — 4 months ago
- Milestone changed from Awaiting Review to 2.3
comment:2
johnjamesjacoby — 4 months ago
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
(In [4741]) Fix issue with user profile replies pagination. Props r-a-y. Fixes #2190.