WP_Block_Patterns_Registry::__wakeup()publicWP 1.0

Method of the class: WP_Block_Patterns_Registry{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Block_Patterns_Registry = new WP_Block_Patterns_Registry();
$WP_Block_Patterns_Registry->__wakeup();

WP_Block_Patterns_Registry::__wakeup() code WP 6.7.2

public function __wakeup() {
	if ( ! $this->registered_patterns ) {
		return;
	}
	if ( ! is_array( $this->registered_patterns ) ) {
		throw new UnexpectedValueException();
	}
	foreach ( $this->registered_patterns as $value ) {
		if ( ! is_array( $value ) ) {
			throw new UnexpectedValueException();
		}
	}
	$this->registered_patterns_outside_init = array();
}