From 36d112d1c8b98a8c83fb278f4397cb4b8327898d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 24 Mar 2020 20:54:38 +0000 Subject: [PATCH] Docs: Revert a type change for the `$value` parameter of `WP_Dependencies::add_data()` in [47170]. Although described as a string in several places, it's technically not limited to a particular type. Props westonruter. See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47502 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class.wp-dependencies.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class.wp-dependencies.php b/src/wp-includes/class.wp-dependencies.php index a5ac9cda83..313faa19ed 100644 --- a/src/wp-includes/class.wp-dependencies.php +++ b/src/wp-includes/class.wp-dependencies.php @@ -246,7 +246,7 @@ class WP_Dependencies { * * @param string $handle Name of the item. Should be unique. * @param string $key The data key. - * @param string $value The data value. + * @param mixed $value The data value. * @return bool True on success, false on failure. */ public function add_data( $handle, $key, $value ) { @@ -266,7 +266,7 @@ class WP_Dependencies { * * @param string $handle Name of the item. Should be unique. * @param string $key The data key. - * @return string|false Extra item data (string), false otherwise. + * @return mixed Extra item data (string), false otherwise. */ public function get_data( $handle, $key ) { if ( ! isset( $this->registered[ $handle ] ) ) {