Make WordPress Core


Ignore:
Timestamp:
09/28/2025 09:54:21 PM (3 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-type-registry.php

    r60796 r60804  
    169169    }
    170170
    171     /**
    172      * Unserialize magic method.
    173      *
    174      * @since 6.9.0
    175      *
    176      * @param array $data Data to unserialize.
    177      */
    178     public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
     171    public function __wakeup() {
    179172        if ( ! $this->registered_block_types ) {
    180173            return;
     
    191184
    192185    /**
    193      * Wakeup magic method.
    194      *
    195      * @since 6.4.0
    196      */
    197     public function __wakeup() {
    198         $this->__unserialize( array() );
    199     }
    200 
    201     /**
    202186     * Utility method to retrieve the main instance of the class.
    203187     *
Note: See TracChangeset for help on using the changeset viewer.