Skip to content

Commit ec0cfd9

Browse files
authored
Set $found = true when we short-circuit wp_cache_get
1 parent 7e49aae commit ec0cfd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

object-cache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ function wp_cache_get( $key, $group = '', $force = false, &$found = null ) {
5757

5858
$value = apply_filters( 'pre_wp_cache_get', false, $key, $group, $force );
5959
if ( false !== $value ) {
60+
$found = true;
6061
return $value;
6162
}
6263

0 commit comments

Comments
 (0)