mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@47944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -10,21 +10,22 @@
|
||||
|
||||
if ( ! function_exists( 'wp_cache_get_multiple' ) ) :
|
||||
/**
|
||||
* Compat function to mimic wp_cache_get_multiple.
|
||||
* Retrieves multiple values from the cache.
|
||||
* Retrieves multiple values from the cache in one call.
|
||||
*
|
||||
* Compat function to mimic wp_cache_get_multiple().
|
||||
*
|
||||
* @ignore
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @see wp_cache_get_multiple()
|
||||
*
|
||||
* @param array $keys Array of keys to fetch.
|
||||
* @param bool $force Optional. Unused. Whether to force a refetch rather than relying on the local
|
||||
* cache. Default false.
|
||||
*
|
||||
* @param array $keys Array of keys under which the cache contents are stored.
|
||||
* @param string $group Optional. Where the cache contents are grouped. Default empty.
|
||||
* @param bool $force Optional. Whether to force an update of the local cache
|
||||
* from the persistent cache. Default false.
|
||||
* @return array Array of values organized into groups.
|
||||
*/
|
||||
function wp_cache_get_multiple( $keys, $group = 'default', $force = false ) {
|
||||
function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
|
||||
$values = array();
|
||||
|
||||
foreach ( $keys as $key ) {
|
||||
|
||||
Reference in New Issue
Block a user