diff --git a/src/wp-includes/class-wp-object-cache.php b/src/wp-includes/class-wp-object-cache.php
index cd84b177539a1d834467c543726874b278642080..013a2f28f109323f1cd566271ddcbbaa12a78e5a 100644
|
a
|
b
|
class WP_Object_Cache {
|
| 397 | 397 | * @param string $group Optional. Where the cache contents are grouped. Default 'default'. |
| 398 | 398 | * @param bool $force Optional. Whether to force an update of the local cache |
| 399 | 399 | * from the persistent cache. Default false. |
| | 400 | * @param array $found Optional. Whether array of keys were found in the cache (passed by reference). |
| | 401 | * Disambiguates a return of false, a storable value. Default empty array. |
| 400 | 402 | * @return array Array of return values, grouped by key. Each value is either |
| 401 | 403 | * the cache contents on success, or false on failure. |
| 402 | 404 | */ |
| 403 | | public function get_multiple( $keys, $group = 'default', $force = false ) { |
| | 405 | public function get_multiple( $keys, $group = 'default', $force = false, &$found = array() ) { |
| 404 | 406 | $values = array(); |
| 405 | 407 | |
| 406 | 408 | foreach ( $keys as $key ) { |
| 407 | | $values[ $key ] = $this->get( $key, $group, $force ); |
| | 409 | $values[ $key ] = $this->get( $key, $group, $force, $found[ $key ] ); |
| 408 | 410 | } |
| 409 | 411 | |
| 410 | 412 | return $values; |
diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php
index e7fe7b87a85cd42960f484d05aec1a3bad811279..9bb4f5dcf2c6b4f4da3a8588d5671b90693fb1b4 100644
|
a
|
b
|
function wp_cache_get( $key, $group = '', $force = false, &$found = null ) {
|
| 166 | 166 | * @param string $group Optional. Where the cache contents are grouped. Default empty. |
| 167 | 167 | * @param bool $force Optional. Whether to force an update of the local cache |
| 168 | 168 | * from the persistent cache. Default false. |
| | 169 | * @param array $found Optional. Whether array of keys were found in the cache (passed by reference). |
| | 170 | * Disambiguates a return of false, a storable value. Default empty array. |
| 169 | 171 | * @return array Array of return values, grouped by key. Each value is either |
| 170 | 172 | * the cache contents on success, or false on failure. |
| 171 | 173 | */ |
| 172 | | function wp_cache_get_multiple( $keys, $group = '', $force = false ) { |
| | 174 | function wp_cache_get_multiple( $keys, $group = '', $force = false, &$found = array() ) { |
| 173 | 175 | global $wp_object_cache; |
| 174 | 176 | |
| 175 | | return $wp_object_cache->get_multiple( $keys, $group, $force ); |
| | 177 | return $wp_object_cache->get_multiple( $keys, $group, $force, $found ); |
| 176 | 178 | } |
| 177 | 179 | |
| 178 | 180 | /** |