From 34c42a306d1796d5d48d67e1eed967e5299395ab Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 24 Mar 2020 21:08:09 +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. Reviewed by jorgefilipecosta, SergeyBiryukov. Merges [47502] to the 5.4 branch. Fixes #48303. Built from https://develop.svn.wordpress.org/branches/5.4@47503 git-svn-id: http://core.svn.wordpress.org/branches/5.4@47278 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class.wp-dependencies.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class.wp-dependencies.php b/wp-includes/class.wp-dependencies.php index a5ac9cda83..313faa19ed 100644 --- a/wp-includes/class.wp-dependencies.php +++ b/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 ] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index eca886be5e..76ec2d66fd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-RC3-47501'; +$wp_version = '5.4-RC3-47503'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.