Opened 5 years ago
Last modified 5 years ago
#3230 new defect (bug)
scheduled stickies appear immediately
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Component - Topics | Keywords: | needs-patch needs-unit-tests |
Cc: |
Description
If you schedule a sticky, it appears in the forum list immediately
<?php function bbp_get_stickies( $forum_id = 0 ) { $stickies = empty( $forum_id ) ? bbp_get_super_stickies() : get_post_meta( $forum_id, '_bbp_sticky_topics', true ); $stickies = ( empty( $stickies ) || !is_array( $stickies ) ) ? array() : $stickies; return apply_filters( 'bbp_get_stickies', $stickies, (int) $forum_id ); }
deos not check to see if status is future
Change History (1)
Note: See
TracTickets for help on using
tickets.
Kind of a known issue.
This is because almost all user activity in bbPress happens theme-side, and the ability to future-date a topic or reply isn't made available as a feature.
Someone wanting to patch this in bbPress core would do something like:
transition_post_status
hookI think it would be nice for this to work, specifically for moderators and admins that use WordPress admin for managing their forums.