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/forums/functions.php

    r5658 r5676  
    15751575 * @since bbPress (r2908)
    15761576 *
    1577  * @param mixed $args Supports these arguments:
     1577 * @param array $args Supports these arguments:
    15781578 *  - forum_id: Forum id
    15791579 *  - last_topic_id: Last topic id
     
    15911591 * @uses bbp_update_forum_topic_count_hidden() To update the hidden topic count
    15921592 */
    1593 function bbp_update_forum( $args = '' ) {
     1593function bbp_update_forum( $args = array() ) {
    15941594
    15951595    // Parse arguments against default values
Note: See TracChangeset for help on using the changeset viewer.