Opened 8 years ago
Closed 7 years ago
#3246 closed defect (bug) (fixed)
Unapproved stickies still listed in forums
| Reported by: | bbrian | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | high | Milestone: | 2.6 |
| Component: | Component - Topics | Version: | 2.5.14 |
| Severity: | minor | Keywords: | needs-patch |
| Cc: |
Description
If a sticky is unapproved, it does not remove it from the top of the forum's list of topics. Regular users can see the sticky title but reach a 404 page when trying to open it.
To reproduce:
<?php $topic_id = <non-sticky test topic id>; bbp_stick_topic( $topic_id, true ); bbp_unapprove_topic( $topic_id );
...then view the forum as a regular user to confirm the sticky is still listed.
I'm using bbp_unstick_topic( $topic_id ); after calling bbp_unapprove_topic() but this loses the historical context of the stickied post.
Version 2.6-rc-7.
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)
In 6915: