Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/19/2017 02:44:11 AM (5 years ago)
Author:
johnjamesjacoby
Message:

Forums: Audit private/hidden forum ID exclusion:

  • improve performance of bbp_exclude_forum_ids()
  • Use bbp_exclude_forum_ids() where duplicate code existed
  • Make sure $forum_ids are passed into bbp_exclude_forum_ids filter
  • Prefer arrays over imploded strings (also with post statuses)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/template.php

    r6384 r6414  
    722722        'post_parent'         => 0,
    723723        'post_type'           => bbp_get_forum_post_type(),
    724         'post_status'         => implode( ',', $post_stati ),
     724        'post_status'         => $post_stati,
    725725        'posts_per_page'      => get_option( '_bbp_forums_per_page', 50 ),
    726726        'orderby'             => 'menu_order title',
Note: See TracChangeset for help on using the changeset viewer.