From d6145020aeb516e0e04767dc682ca315408e3416 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 23 Aug 2016 14:38:29 +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. Built from https://develop.svn.wordpress.org/trunk@38335 git-svn-id: http://core.svn.wordpress.org/trunk@38276 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cache.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 6c53eabb78..623895d412 100644 --- a/wp-includes/cache.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 94cf91a969..5986f4ffa1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38334'; +$wp_version = '4.7-alpha-38335'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.