Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/18/2012 02:56:01 AM (9 years ago)
Author:
jmdodd
Message:

Shortcode iteration for search introduced in #1575.

  • Fix bbp-search shortcode.
  • Introduce bbp-search-form shortcode.
  • Fixes #2107.
File:
1 edited

Legend:

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

    r4579 r4586  
    2626function bbp_search_query( $new_args = '' ) {
    2727
     28    // Existing arguments
    2829    $query_args = bbp_get_search_query_args();
    29     if ( empty( $query_args ) )
    30         return false;
    3130
    3231    // Merge arguments
     
    5150    // Get search terms
    5251    $search_terms = bbp_get_search_terms();
    53     $retval = !empty( $search_terms ) ? array( 's' => $search_terms ) : false;
     52    $retval = !empty( $search_terms ) ? array( 's' => $search_terms ) : array();
    5453
    5554    return apply_filters( 'bbp_get_search_query_args', $retval );
Note: See TracChangeset for help on using the changeset viewer.