ENT_SUBSTITUTE | \ENT_HTML401 ), $charset ); $classes = $img->getAttribute( $attribute ); $id = $this->extract_id_of_classes( $classes ); $images[ $src ] = $id; } return $images; } /** * Extracts image ID out of the image's classes. * * @param string $classes The classes assigned to the image. * * @return int The ID that's extracted from the classes. */ protected function extract_id_of_classes( $classes ) { if ( ! $classes ) { return 0; } /** * Filter 'wpseo_extract_id_pattern' - Allows filtering the regex patern to be used to extract image IDs from class/attribute names. * * Defaults to the pattern that extracts image IDs from core's `wp-image-` native format in image classes. * * @api string The regex pattern to be used to extract image IDs from class names. Empty string if the whole class/attribute should be returned. */ $pattern = \apply_filters( 'wpseo_extract_id_pattern', '/(? Fatal error: Uncaught Error: Class "Yoast\WP\SEO\Images\Application\Image_Content_Extractor" not found in /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php:1674 Stack trace: #0 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1583): Yoast\WP\SEO\Generated\Cached_Container->getIndexableLinkBuilderService() #1 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #2 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1631): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #3 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1568): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyBuilderService() #4 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #5 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3176): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #6 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1623): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHelperService() #7 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1568): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyBuilderService() #8 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #9 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1285): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #10 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3200): Yoast\WP\SEO\Generated\Cached_Container->getIndexablePostIndexationActionService() #11 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3168): Yoast\WP\SEO\Generated\Cached_Container->getIndexingHelperService() #12 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1623): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHelperService() #13 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5265): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyBuilderService() #14 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1613): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyRepositoryService() #15 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1568): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyBuilderService() #16 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #17 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3132): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #18 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1651): Yoast\WP\SEO\Generated\Cached_Container->getImageHelperService() #19 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1558): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHomePageBuilderService() #20 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #21 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3132): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #22 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1743): Yoast\WP\SEO\Generated\Cached_Container->getImageHelperService() #23 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1553): Yoast\WP\SEO\Generated\Cached_Container->getIndexableTermBuilderService() #24 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #25 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1696): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #26 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1548): Yoast\WP\SEO\Generated\Cached_Container->getIndexablePostBuilderService() #27 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #28 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3132): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #29 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1531): Yoast\WP\SEO\Generated\Cached_Container->getImageHelperService() #30 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1543): Yoast\WP\SEO\Generated\Cached_Container->getIndexableAuthorBuilderService() #31 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #32 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(3301): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #33 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1523): Yoast\WP\SEO\Generated\Cached_Container->getPostHelperService() #34 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(1543): Yoast\WP\SEO\Generated\Cached_Container->getIndexableAuthorBuilderService() #35 /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php(5278): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #36 /htdocs/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php(271): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #37 /htdocs/wp-content/plugins/wordpress-seo/src/surfaces/classes-surface.php(38): YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container->get('Yoast\\WP\\SEO\\Re...') #38 /htdocs/wp-content/plugins/wordpress-seo-premium/premium.php(105): Yoast\WP\SEO\Surfaces\Classes_Surface->get('Yoast\\WP\\SEO\\Re...') #39 /htdocs/wp-content/plugins/wordpress-seo-premium/src/initializers/plugin.php(55): WPSEO_Premium->__construct() #40 /htdocs/wp-includes/class-wp-hook.php(324): Yoast\WP\SEO\Premium\Initializers\Plugin->load('') #41 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #42 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #43 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #44 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #45 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #46 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #47 /htdocs/index.php(17): require('/htdocs/wp-blog...') #48 {main} thrown in /htdocs/wp-content/plugins/wordpress-seo/src/generated/container.php on line 1674