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/widgets.php

    r4948 r4971  
    408408     */
    409409    public function widget( $args, $instance ) {
     410
     411        // Bail if search is disabled
     412        if ( ! bbp_allow_search() )
     413            return;
    410414
    411415        // Get widget settings
Note: See TracChangeset for help on using the changeset viewer.