Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/19/2017 02:44:11 AM (7 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/search/template.php

    r6300 r6414  
    8080
    8181        // Join post statuses together
    82         $default['post_status'] = implode( ',', $post_statuses );
     82        $default['post_status'] = $post_statuses;
    8383
    8484    // Lean on the 'perm' query var value of 'readable' to provide statuses
Note: See TracChangeset for help on using the changeset viewer.