Make WordPress Core

Changeset 46808


Ignore:
Timestamp:
12/01/2019 12:11:57 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-widget-factory.php

    r46627 r46808  
    4545        self::__construct();
    4646    }
    47 
    48     /**
    49      * Memory for the number of times unique class instances have been hashed.
    50      *
    51      * This can be eliminated in favor of straight spl_object_hash() when 5.3
    52      * is the minimum requirement for PHP.
    53      *
    54      * @since 4.6.0
    55      * @var array
    56      *
    57      * @see WP_Widget_Factory::hash_object()
    58      */
    59     private $hashed_class_counts = array();
    6047
    6148    /**
Note: See TracChangeset for help on using the changeset viewer.