WP_Theme::__wakeup
Perform reinitialization tasks.
Prevents a callback from being injected during unserialization of an object.
Method of the class: WP_Theme{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Theme = new WP_Theme(); $WP_Theme->__wakeup();
WP_Theme::__wakeup() WP Theme:: wakeup code WP 6.9.1
public function __wakeup() {
if ( $this->parent && ! $this->parent instanceof self ) {
throw new UnexpectedValueException();
}
if ( $this->headers && ! is_array( $this->headers ) ) {
throw new UnexpectedValueException();
}
foreach ( $this->headers as $value ) {
if ( ! is_string( $value ) ) {
throw new UnexpectedValueException();
}
}
$this->headers_sanitized = array();
}