WP_Theme::__wakeup()

Perform reinitialization tasks.


Description

Prevents a callback from being injected during unserialization of an object.


Return

(void)


Source

File: wp-includes/class-wp-theme.php

	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();
	}