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
This commit is contained in:
Scott Taylor 2016-08-23 14:38:29 +00:00
parent b7812bd416
commit d6145020ae
2 changed files with 3 additions and 3 deletions

View File

@ -302,10 +302,10 @@ class WP_Object_Cache {
* The amount of times the cache data was already stored in the cache. * The amount of times the cache data was already stored in the cache.
* *
* @since 2.5.0 * @since 2.5.0
* @access private * @access public
* @var int * @var int
*/ */
private $cache_hits = 0; public $cache_hits = 0;
/** /**
* Amount of times the cache did not have the request in cache. * Amount of times the cache did not have the request in cache.

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.