From 2a85333570056f0e566353a282876db624c62522 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 1 Dec 2019 12:11:57 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@46808 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-widget-factory.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/wp-includes/class-wp-widget-factory.php b/src/wp-includes/class-wp-widget-factory.php index b72538336e..2fd4d9d60f 100644 --- a/src/wp-includes/class-wp-widget-factory.php +++ b/src/wp-includes/class-wp-widget-factory.php @@ -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. *