Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2017 05:04:31 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tools: Add //Filter & return note for future discovery of missing filter documentation.

Also adjust some type-casting on filtered results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/search/functions.php

    r5951 r6438  
    5050    // Get search terms
    5151    $search_terms = bbp_get_search_terms();
    52     $retval       = ! empty( $search_terms ) ? array( 's' => $search_terms ) : array();
     52    $retval       = ! empty( $search_terms )
     53        ? array( 's' => $search_terms )
     54        : array();
    5355
     56    // Filter & return
    5457    return apply_filters( 'bbp_get_search_query_args', $retval );
    5558}
Note: See TracChangeset for help on using the changeset viewer.