Edit File by line
/home/barbar84/www/wp-inclu...
File: cache-compat.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Object Cache API functions missing from 3rd party object caches.
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://codex.wordpress.org/Class_Reference/WP_Object_Cache
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Cache
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
if ( ! function_exists( 'wp_cache_get_multiple' ) ) :
[10] Fix | Delete
/**
[11] Fix | Delete
* Retrieves multiple values from the cache in one call.
[12] Fix | Delete
*
[13] Fix | Delete
* Compat function to mimic wp_cache_get_multiple().
[14] Fix | Delete
*
[15] Fix | Delete
* @ignore
[16] Fix | Delete
* @since 5.5.0
[17] Fix | Delete
*
[18] Fix | Delete
* @see wp_cache_get_multiple()
[19] Fix | Delete
*
[20] Fix | Delete
* @param array $keys Array of keys under which the cache contents are stored.
[21] Fix | Delete
* @param string $group Optional. Where the cache contents are grouped. Default empty.
[22] Fix | Delete
* @param bool $force Optional. Whether to force an update of the local cache
[23] Fix | Delete
* from the persistent cache. Default false.
[24] Fix | Delete
* @return array Array of values organized into groups.
[25] Fix | Delete
*/
[26] Fix | Delete
function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
[27] Fix | Delete
$values = array();
[28] Fix | Delete
[29] Fix | Delete
foreach ( $keys as $key ) {
[30] Fix | Delete
$values[ $key ] = wp_cache_get( $key, $group, $force );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
return $values;
[34] Fix | Delete
}
[35] Fix | Delete
endif;
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function