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-source.php

    r60796 r60804  
    100100
    101101    /**
    102      * Unserialize magic method.
    103      *
    104      * @since 6.9.0
    105      *
    106      * @param array $data Data to unserialize.
    107      */
    108     public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
    109         throw new \LogicException( __CLASS__ . ' should never be unserialized' );
    110     }
    111 
    112     /**
    113102     * Wakeup magic method.
    114103     *
     
    116105     */
    117106    public function __wakeup() {
    118         $this->__unserialize( array() );
     107        throw new \LogicException( __CLASS__ . ' should never be unserialized' );
    119108    }
    120109}
Note: See TracChangeset for help on using the changeset viewer.