Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/28/2013 11:12:36 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Allow the search feature to be toggled on and off. Introduces new setting and supporting function to get and override the option easily in third party plugins. Fixes #2342.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/template-tags.php

    r4953 r4971  
    795795    global $wp_query;
    796796
     797    // Bail if search is disabled
     798    if ( ! bbp_allow_search() )
     799        return false;
     800
    797801    // Assume false
    798802    $retval = false;
     
    824828function bbp_is_search_results() {
    825829    global $wp_query;
     830
     831    // Bail if search is disabled
     832    if ( ! bbp_allow_search() )
     833        return false;
    826834
    827835    // Assume false
Note: See TracChangeset for help on using the changeset viewer.