WP_Block_Bindings_Registry::__wakeup()publicWP 6.5.0

Wakeup magic method.

Method of the class: WP_Block_Bindings_Registry{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 6.5.0 Introduced.

WP_Block_Bindings_Registry::__wakeup() code WP 6.5.4

public function __wakeup() {
	if ( ! $this->sources ) {
		return;
	}
	if ( ! is_array( $this->sources ) ) {
		throw new UnexpectedValueException();
	}
	foreach ( $this->sources as $value ) {
		if ( ! $value instanceof WP_Block_Bindings_Source ) {
			throw new UnexpectedValueException();
		}
	}
}