Make WordPress Core

Changeset 57163 for trunk


Ignore:
Timestamp:
12/06/2023 04:03:48 PM (6 months ago)
Author:
joemcgill
Message:

HTML-API: Prevent unintended behavior when WP_HTML_Token is unserialized.

Props dmsnell, peterwilsoncc, dd32, xknown, rawrly, johnbillion, barry, jeffpaul, vortfu, isabel_brison, mikeschroder, jorbin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-token.php

    r56363 r57163  
    9595        }
    9696    }
     97
     98    /**
     99     * Wakeup magic method.
     100     *
     101     * @since 6.4.2
     102     */
     103    public function __wakeup() {
     104        throw new \LogicException( __CLASS__ . ' should never be unserialized' );
     105    }
    97106}
Note: See TracChangeset for help on using the changeset viewer.