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/html-api/class-wp-html-token.php

    r60796 r60804  
    117117
    118118    /**
    119      * Unserialize magic method.
    120      *
    121      * @since 6.9.0
    122      *
    123      * @param array $data Data to unserialize.
    124      */
    125     public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
    126         throw new \LogicException( __CLASS__ . ' should never be unserialized' );
    127     }
    128 
    129     /**
    130119     * Wakeup magic method.
    131120     *
     
    133122     */
    134123    public function __wakeup() {
    135         $this->__unserialize( array() );
     124        throw new \LogicException( __CLASS__ . ' should never be unserialized' );
    136125    }
    137126}
Note: See TracChangeset for help on using the changeset viewer.