Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/15/2015 02:33:11 AM (10 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/common/widgets.php

    r5561 r5676  
    5959     * @since bbPress (r2827)
    6060     *
    61      * @param mixed $args Arguments
     61     * @param array $args Arguments
    6262     * @param array $instance Instance
    6363     * @uses apply_filters() Calls 'bbp_login_widget_title' with the title
     
    263263     * @since bbPress (r3020)
    264264     *
    265      * @param mixed $args Arguments
     265     * @param array $args Arguments
    266266     * @param array $instance Instance
    267267     * @uses apply_filters() Calls 'bbp_view_widget_title' with the title
     
    533533     * @since bbPress (r2653)
    534534     *
    535      * @param mixed $args Arguments
     535     * @param array $args Arguments
    536536     * @param array $instance Instance
    537537     * @uses apply_filters() Calls 'bbp_forum_widget_title' with the title
     
    713713     * @since bbPress (r2653)
    714714     *
    715      * @param mixed $args
     715     * @param array $args
    716716     * @param array $instance
    717717     * @uses apply_filters() Calls 'bbp_topic_widget_title' with the title
     
    971971     * @since bbPress (r4509)
    972972     *
    973      * @param mixed $args     Arguments
     973     * @param array $args     Arguments
    974974     * @param array $instance Instance
    975975     *
     
    11011101     * @since bbPress (r2653)
    11021102     *
    1103      * @param mixed $args
     1103     * @param array $args
    11041104     * @param array $instance
    11051105     * @uses apply_filters() Calls 'bbp_reply_widget_title' with the title
Note: See TracChangeset for help on using the changeset viewer.