Forums
-
- Forum
- Posts
-
- Installation
- 28,528
- Troubleshooting
- 62,942
- Themes
- 10,453
- Plugins
- 15,405
- Requests & Feedback
- 15,045
- Showcase
- 3,250
-
This typo still exists, which continues to publicly display Private or Scheduled sticky posts in the latest version of bbPress 2.6.4.
It can be easily fixed by correcting line 404 of the “bbpress/includes/topics/template.php” file to set $sticky_query[‘perm’] instead of $sticky_query[‘post_status’].
This is the correct code that works:
// Allowed statuses, or lean on the 'perm' argument (probably 'readable')
$sticky_query['perm'] = bbp_get_view_all( 'edit_others_topics' ) ?
$r['post_status']
: $r['perm'];