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:
parent
b7812bd416
commit
d6145020ae
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue