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/topics/capabilities.php

    r5443 r5676  
    5555 * @param string $cap Capability name
    5656 * @param int $user_id User id
    57  * @param mixed $args Arguments
     57 * @param array $args Arguments
    5858 * @uses get_post() To get the post
    5959 * @uses get_post_type_object() To get the post type object
     
    213213 * @param string $cap Capability name
    214214 * @param int $user_id User id
    215  * @param mixed $args Arguments
     215 * @param array $args Arguments
    216216 * @uses apply_filters() Filter capability map results
    217217 * @return array Actual capabilities for meta capability
Note: See TracChangeset for help on using the changeset viewer.