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.
Built from https://develop.svn.wordpress.org/trunk@47502


git-svn-id: http://core.svn.wordpress.org/trunk@47277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-03-24 20:56:09 +00:00
parent 26cc999d64
commit 55482506a3
2 changed files with 3 additions and 3 deletions

View File

@ -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 ] ) ) {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47500';
$wp_version = '5.5-alpha-47502';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.