Opened 10 years ago
Last modified 13 months ago
#2763 new defect (bug)
Stickies get doubled
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | minor | Version: | 2.5.4 |
Component: | Component - Topics | Keywords: | |
Cc: |
Description
Stickies are being shown at the top of the forum and once more in the normal chronological order.
This may be a regression (see #50). On second thought, however, I'm not sure because #50 is not specific about pagination (did that exist in v0.1?). Stickying a post from the first page correctly removes it from the list of posts, but stickying a post from the second page will display it at the top of the first page and once more in the list of posts on page 2 where I would not expect to see it. Marking as defect rather than regression for now.
Much of the sticky code relies on WordPress's approach to querying for stickies, and previous limitations in
WP_Query
that are now resolved with additional query arguments likepost__not_in
andpost_parent__not_in
for which bbPress previously had custom implementations.Moving to 2.7 to see about improving this with some kind of
not_in
query arg to exclude sticky ID's.