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

    r60796 r60804  
    784784     *
    785785     * Prevents a callback from being injected during unserialization of an object.
    786      *
    787      * @since 6.9.0
    788      *
    789      * @param array $data Data to unserialize.
    790      */
    791     public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
     786     */
     787    public function __wakeup() {
    792788        if ( $this->parent && ! $this->parent instanceof self ) {
    793789            throw new UnexpectedValueException();
     
    802798        }
    803799        $this->headers_sanitized = array();
    804     }
    805 
    806     /**
    807      * Wakeup magic method.
    808      *
    809      * @since 6.4.0
    810      */
    811     public function __wakeup() {
    812         $this->__unserialize( array() );
    813800    }
    814801
Note: See TracChangeset for help on using the changeset viewer.