Make WordPress Core


Ignore:
Timestamp:
06/10/2020 09:55:56 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing documentation for the $group parameter of WP_Object_Cache::get_multiple().

Synchronize documentation between wp_cache_get_multiple(), its compat version, and the class method.

See #20875.

File:
1 edited

Legend:

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

    r47939 r47944  
    1111if ( ! function_exists( 'wp_cache_get_multiple' ) ) :
    1212        /**
    13          * Compat function to mimic wp_cache_get_multiple.
    14          * Retrieves multiple values from the cache.
     13         * Retrieves multiple values from the cache in one call.
     14         *
     15         * Compat function to mimic wp_cache_get_multiple().
    1516         *
    1617         * @ignore
    … …  
    1920         * @see wp_cache_get_multiple()
    2021         *
    21          * @param array $keys        Array of keys to fetch.
    22          * @param bool  $force       Optional. Unused. Whether to force a refetch rather than relying on the local
    23          *                           cache. Default false.
    24          *
     22         * @param array  $keys  Array of keys under which the cache contents are stored.
     23         * @param string $group Optional. Where the cache contents are grouped. Default empty.
     24         * @param bool   $force Optional. Whether to force an update of the local cache
     25         *                      from the persistent cache. Default false.
    2526         * @return array Array of values organized into groups.
    2627         */
    27         function wp_cache_get_multiple( $keys, $group = 'default', $force = false ) {
     28        function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
    2829                $values = array();
    2930
Note: See TracChangeset for help on using the changeset viewer.