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-patterns-registry.php

    r60796 r60804  
    246246    }
    247247
    248     /**
    249      * Unserialize magic method.
    250      *
    251      * @since 6.9.0
    252      *
    253      * @param array $data Data to unserialize.
    254      */
    255     public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
     248    public function __wakeup() {
    256249        if ( ! $this->registered_patterns ) {
    257250            return;
     
    266259        }
    267260        $this->registered_patterns_outside_init = array();
    268     }
    269 
    270     /**
    271      * Wakeup magic method.
    272      *
    273      * @since 6.4.0
    274      */
    275     public function __wakeup() {
    276         $this->__unserialize( array() );
    277261    }
    278262
Note: See TracChangeset for help on using the changeset viewer.