=> wp_sitemaps_get_max_urls( $this->object_type ), ) ); return $args; } } me ][ $block_style_name ] ); return true; } /** * Retrieves the properties of a registered block style for the given block type. * * @since 5.3.0 * * @param string $block_name Block type name including namespace. * @param string $block_style_name Block style name. * @return array Registered block style properties. */ public function get_registered( $block_name, $block_style_name ) { if ( ! $this->is_registered( $block_name, $block_style_name ) ) { return null; } return $this->registered_block_styles[ $block_name ][ $block_style_name ]; } /** * Retrieves all registered block styles. * * @since 5.3.0 * * @return array[] Array of arrays containing the registered block styles properties grouped by block type. */ public function get_all_registered() { return $this->registered_block_styles; } /** * Retrieves registered block styles for a specific block type. * * @since 5.3.0 * * @param string $block_name Block type name including namespace. * @return array[] Array whose keys are block style names and whose values are block style properties. */ public function get_registered_styles_for_block( $block_name ) { if ( isset( $this->registered_block_styles[ $block_name ] ) ) { return $this->registered_block_styles[ $block_name ]; } return array(); } /** * Checks if a block style is registered for the given block type. * * @since 5.3.0 * * @param string $block_name Block type name including namespace. * @param string $block_style_name Block style name. * @return bool True if the block style is registered, false otherwise. */ public function is_registered( $block_name, $block_style_name ) { return isset( $this->registered_block_styles[ $block_name ][ $block_style_name ] ); } /** * Utility method to retrieve the main instance of the class. * * The instance will be created if it does not exist yet. * * @since 5.3.0 * * @return WP_Block_Styles_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_Styles_Registry" not found in /htdocs/wp-includes/class-wp-theme-json.php:1151 Stack trace: #0 /htdocs/wp-includes/class-wp-theme-json.php(762): WP_Theme_JSON::get_blocks_metadata() #1 /htdocs/wp-includes/class-wp-theme-json-data.php(44): WP_Theme_JSON->__construct(Array, 'default') #2 /htdocs/wp-includes/class-wp-theme-json-resolver.php(175): WP_Theme_JSON_Data->__construct(Array, 'default') #3 /htdocs/wp-content/plugins/mailpoet/lib/EmailEditor/Engine/ThemeController.php(21): WP_Theme_JSON_Resolver::get_core_data() #4 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3406): MailPoet\EmailEditor\Engine\ThemeController->__construct() #5 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3376): MailPoetGenerated\FreeCachedContainer->getSettingsControllerService() #6 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3386): MailPoetGenerated\FreeCachedContainer->getTypographyPreprocessorService() #7 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3316): MailPoetGenerated\FreeCachedContainer->getProcessManagerService() #8 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3396): MailPoetGenerated\FreeCachedContainer->getContentRendererService() #9 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4031): MailPoetGenerated\FreeCachedContainer->getRenderer2Service() #10 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(5088): MailPoetGenerated\FreeCachedContainer->getRenderer6Service() #11 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(5098): MailPoetGenerated\FreeCachedContainer->getConfirmationEmailCustomizerService() #12 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(5198): MailPoetGenerated\FreeCachedContainer->getConfirmationEmailMailerService() #13 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(5368): MailPoetGenerated\FreeCachedContainer->getSubscriberActionsService() #14 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2612): MailPoetGenerated\FreeCachedContainer->getCommentService() #15 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2640): MailPoetGenerated\FreeCachedContainer->getHooks2Service() #16 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #17 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #18 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #19 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #20 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #21 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #22 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #23 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #24 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #25 /htdocs/index.php(17): require('/htdocs/wp-blog...') #26 {main} thrown in /htdocs/wp-includes/class-wp-theme-json.php on line 1151