WordPress.org

Make WordPress Core

Changeset 47502


Ignore:
Timestamp:
03/24/2020 08:54:38 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-dependencies.php

    r47359 r47502  
    247247     * @param string $handle Name of the item. Should be unique.
    248248     * @param string $key    The data key.
    249      * @param string $value  The data value.
     249     * @param mixed $value  The data value.
    250250     * @return bool True on success, false on failure.
    251251     */
     
    267267     * @param string $handle Name of the item. Should be unique.
    268268     * @param string $key    The data key.
    269      * @return string|false Extra item data (string), false otherwise.
     269     * @return mixed Extra item data (string), false otherwise.
    270270     */
    271271    public function get_data( $handle, $key ) {
Note: See TracChangeset for help on using the changeset viewer.