WordPress.org

Make WordPress Core

Changeset 47503


Ignore:
Timestamp:
03/24/2020 09:06:53 PM (7 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.
Reviewed by jorgefilipecosta, SergeyBiryukov.
Merges [47502] to the 5.4 branch.
Fixes #48303.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-includes/class.wp-dependencies.php

    r47359 r47503  
    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.