Make WordPress Core


Ignore:
Timestamp:
09/28/2025 09:54:21 PM (2 months ago)
Author:
johnbillion
Message:

Code Modernization: Revert [60796]. This change needs some more work before it's fully ready.

See #63962

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-bindings-registry.php

    r60796 r60804  
    258258
    259259    /**
    260      * Unserialize magic method.
    261      *
    262      * @since 6.9.0
    263      *
    264      * @param array $data Data to unserialize.
    265      */
    266     public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
     260     * Wakeup magic method.
     261     *
     262     * @since 6.5.0
     263     */
     264    public function __wakeup() {
    267265        if ( ! $this->sources ) {
    268266            return;
     
    279277
    280278    /**
    281      * Wakeup magic method.
    282      *
    283      * @since 6.5.0
    284      */
    285     public function __wakeup() {
    286         $this->__unserialize( array() );
    287     }
    288 
    289     /**
    290279     * Utility method to retrieve the main instance of the class.
    291280     *
Note: See TracChangeset for help on using the changeset viewer.