me Block type name including namespace. * @return bool True if the block type is registered, false otherwise. */ public function is_registered( $name ) { return isset( $name, $this->registered_block_types[ $name ] ); } 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(); } } } /** * Utility method to retrieve the main instance of the class. * * The instance will be created if it does not exist yet. * * @since 5.0.0 * * @return WP_Block_Type_Registry The main instance. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } }
Fatal error: Uncaught Error: Class "WP_Block_Type_Registry" not found in /htdocs/wp-includes/blocks.php:758 Stack trace: #0 /htdocs/wp-includes/blocks.php(784): register_block_type_from_metadata('/htdocs/wp-cont...', Array) #1 /htdocs/wp-content/plugins/blocksy-companion/framework/features/blocks/query/block.php(274): register_block_type('/htdocs/wp-cont...', Array) #2 /htdocs/wp-content/plugins/blocksy-companion/framework/features/blocks/blocks.php(103): Blocksy\Editor\Blocks\Query->__construct() #3 /htdocs/wp-content/plugins/blocksy-companion/framework/features/blocks/blocks.php(95): Blocksy\Editor\Blocks->init_blocks() #4 /htdocs/wp-includes/class-wp-hook.php(341): Blocksy\Editor\Blocks->mount('') #5 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #6 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #7 /htdocs/wp-settings.php(749): do_action('after_setup_the...') #8 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-includes/blocks.php on line 758