Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/15/2015 02:33:11 AM (11 years ago)
Author:
johnjamesjacoby
Message:

All: Update default values for $args parameters from empty strings to empty arrays.

This is a micro-optimization to avoid unnecessary calls to wp_parse_str() inside bbp_parse_args().

File:
1 edited

Legend:

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

    r5505 r5676  
    1818 * @since bbPress (r4579)
    1919 *
    20  * @param mixed $args All the arguments supported by {@link WP_Query}
     20 * @param array $args All the arguments supported by {@link WP_Query}
    2121 * @uses bbp_get_view_all() Are we showing all results?
    2222 * @uses bbp_get_public_status_id() To get the public status id
     
    3939 * @return object Multidimensional array of search information
    4040 */
    41 function bbp_has_search_results( $args = '' ) {
     41function bbp_has_search_results( $args = array() ) {
    4242    global $wp_rewrite;
    4343
Note: See TracChangeset for help on using the changeset viewer.