Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/15/2015 02:33:11 AM (8 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/topics/functions.php

    r5669 r5676  
    27182718 * @since bbPress (r2782)
    27192719 *
    2720  * @param mixed $args Supports these args:
     2720 * @param array $args Supports these args:
    27212721 *  - topic_id: Topic id
    27222722 *  - author_id: Author id
     
    27292729 * @return mixed False on failure, true on success
    27302730 */
    2731 function bbp_update_topic_revision_log( $args = '' ) {
     2731function bbp_update_topic_revision_log( $args = array() ) {
    27322732
    27332733    // Parse arguments against default values
Note: See TracChangeset for help on using the changeset viewer.