WP_Block_Type_Registry::__wakeup()

Source

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.