Make WordPress Core

Changeset 60130


Ignore:
Timestamp:
04/04/2025 09:58:29 PM (3 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type of the $found parameter in wp_cache_get().

Follow-up to [20089], [34225], [34227], [36069].

Props jigar-bhanushali.
Fixes #63217.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r54448 r60130  
    145145 * @param bool       $force Optional. Whether to force an update of the local cache
    146146 *                          from the persistent cache. Default false.
    147  * @param bool       $found Optional. Whether the key was found in the cache (passed by reference).
     147 * @param bool|null  $found Optional. Whether the key was found in the cache (passed by reference).
    148148 *                          Disambiguates a return of false, a storable value. Default null.
    149149 * @return mixed|false The cache contents on success, false on failure to retrieve contents.
  • trunk/src/wp-includes/class-wp-object-cache.php

    r59066 r60130  
    356356     * @param bool       $force Optional. Unused. Whether to force an update of the local cache
    357357     *                          from the persistent cache. Default false.
    358      * @param bool       $found Optional. Whether the key was found in the cache (passed by reference).
     358     * @param bool|null  $found Optional. Whether the key was found in the cache (passed by reference).
    359359     *                          Disambiguates a return of false, a storable value. Default null.
    360360     * @return mixed|false The cache contents on success, false on failure to retrieve contents.
Note: See TracChangeset for help on using the changeset viewer.