Widgets: Remove `WP_Widget_Factory::$hashed_class_counts` property, unused since [46220].
The `spl_object_hash()` function was introduced in PHP 5.2.0. As of PHP 5.3, the PHP SPL extension can no longer be disabled, so the `WP_Widget_Factory::hash_object()` workaround was removed in [46220]. See #48074. Built from https://develop.svn.wordpress.org/trunk@46808 git-svn-id: http://core.svn.wordpress.org/trunk@46608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0221a593b9
commit
221287f626
|
@ -45,19 +45,6 @@ class WP_Widget_Factory {
|
|||
self::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Memory for the number of times unique class instances have been hashed.
|
||||
*
|
||||
* This can be eliminated in favor of straight spl_object_hash() when 5.3
|
||||
* is the minimum requirement for PHP.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @var array
|
||||
*
|
||||
* @see WP_Widget_Factory::hash_object()
|
||||
*/
|
||||
private $hashed_class_counts = array();
|
||||
|
||||
/**
|
||||
* Registers a widget subclass.
|
||||
*
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-alpha-46807';
|
||||
$wp_version = '5.4-alpha-46808';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue