From da8597c76b14c0629790a50e7da6ea58ad22cc9c Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 23 Aug 2016 14:37:31 +0000 Subject: [PATCH] Cache: in `WP_Object_Cache`, `$cache_misses` is public, but `$cache_hits` is private. They should both be `public`, because they're useful for debugging purposes. Props danielbachhuber. Fixes #37726. git-svn-id: https://develop.svn.wordpress.org/trunk@38335 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php index 6c53eabb78..623895d412 100644 --- a/src/wp-includes/cache.php +++ b/src/wp-includes/cache.php @@ -302,10 +302,10 @@ class WP_Object_Cache { * The amount of times the cache data was already stored in the cache. * * @since 2.5.0 - * @access private + * @access public * @var int */ - private $cache_hits = 0; + public $cache_hits = 0; /** * Amount of times the cache did not have the request in cache.