Make WordPress Core


Ignore:
Timestamp:
09/28/2025 09:54:21 PM (12 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-open-elements.php

    r60796 r60804  
    843843
    844844        /**
    845          * Unserialize magic method.
    846          *
    847          * @since 6.9.0
    848          *
    849          * @param array $data Data to unserialize.
    850          */
    851         public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
     845         * Wakeup magic method.
     846         *
     847         * @since 6.6.0
     848         */
     849        public function __wakeup() {
    852850                throw new \LogicException( __CLASS__ . ' should never be unserialized' );
    853851        }
    854 
    855         /**
    856          * Wakeup magic method.
    857          *
    858          * @since 6.6.0
    859          */
    860         public function __wakeup() {
    861                 $this->__unserialize( array() );
    862         }
    863852}
Note: See TracChangeset for help on using the changeset viewer.