Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/08/2011 05:52:18 PM (12 years ago)
Author:
johnjamesjacoby
Message:

'suppress_filters' audit:

  • Revert part of r3645
  • Rename bbp_pre_get_posts() to bbp_parse_query() and hook to 'parse_query'
  • Move forum post_type check out of bbp_pre_get_posts() and into bbp_pre_get_posts_exclude_forums() where it makes more sense
  • Update documentation for above changes
  • See #1698
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-hooks.php

    r3627 r3646  
    125125add_action( 'template_redirect', 'bbp_manage_topic_tag_handler', 1 );
    126126
    127 // Before and After the Query
    128 add_action( 'pre_get_posts',     'bbp_pre_get_posts',                2 );
    129 add_action( 'pre_get_posts',     'bbp_pre_get_posts_exclude_forums', 4 );
     127// Parse the main query
     128add_action( 'parse_query', 'bbp_parse_query', 2 );
     129
     130// Always exclude private/hidden forums if needed
     131add_action( 'pre_get_posts', 'bbp_pre_get_posts_exclude_forums', 4 );
    130132
    131133// Restrict forum access
Note: See TracChangeset for help on using the changeset viewer.