Make WordPress Core

Changeset 44601


Ignore:
Timestamp:
01/15/2019 06:17:42 AM (6 years ago)
Author:
pento
Message:

Docs: Fix the WP_Object_Cache::get() docblock.

The $force parameter is a bool, not a string. The matching wp_cache_get() docblock has the correct type.

Props subrataemfluence.
Fixes #44454.

File:
1 edited

Legend:

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

    r42343 r44601  
    527527     * @param int|string $key    What the contents in the cache are called.
    528528     * @param string     $group  Optional. Where the cache contents are grouped. Default 'default'.
    529      * @param string     $force  Optional. Unused. Whether to force a refetch rather than relying on the local
     529     * @param bool       $force  Optional. Unused. Whether to force a refetch rather than relying on the local
    530530     *                           cache. Default false.
    531      * @param bool        $found  Optional. Whether the key was found in the cache (passed by reference).
    532      *                            Disambiguates a return of false, a storable value. Default null.
     531     * @param bool       $found  Optional. Whether the key was found in the cache (passed by reference).
     532     *                           Disambiguates a return of false, a storable value. Default null.
    533533     * @return false|mixed False on failure to retrieve contents or the cache contents on success.
    534534     */
Note: See TracChangeset for help on using the changeset viewer.