From 9e028d2fd95af000d5eea75fbd6cd4eeead42b35 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 28 Sep 2016 08:40:24 +0000 Subject: [PATCH] Docs: Improve parameter description for `wp_parse_args()`. Props dimadin for initial patch. Fixes #38167. git-svn-id: https://develop.svn.wordpress.org/trunk@38670 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 48de7e20e1..5b3b1241a9 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -3403,9 +3403,10 @@ function smilies_init() { * to be merged into another array. * * @since 2.2.0 + * @since 2.3.0 `$args` can now also be an object. * - * @param string|array $args Value to merge with $defaults - * @param array $defaults Optional. Array that serves as the defaults. Default empty. + * @param string|array|object $args Value to merge with $defaults. + * @param array $defaults Optional. Array that serves as the defaults. Default empty. * @return array Merged user defined values with defaults. */ function wp_parse_args( $args, $defaults = '' ) {