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

    r5658 r5676  
    12001200 * @since bbPress (r2782)
    12011201 *
    1202  * @param mixed $args Supports these args:
     1202 * @param array $args Supports these args:
    12031203 *  - reply_id: reply id
    12041204 *  - author_id: Author id
     
    12111211 * @return mixed False on failure, true on success
    12121212 */
    1213 function bbp_update_reply_revision_log( $args = '' ) {
     1213function bbp_update_reply_revision_log( $args = array() ) {
    12141214
    12151215    // Parse arguments against default values
Note: See TracChangeset for help on using the changeset viewer.