ager_item ) : $key + 1, $is_first_pager_item ? 'wc-block-product-gallery-pager__pager-item--is-active' : '', $is_first_pager_item ? 'true' : 'false' ); $p = new \WP_HTML_Tag_Processor( $pager_item ); if ( $p->next_tag() ) { $p->set_attribute( 'data-wc-context', wp_json_encode( array( 'imageId' => strval( $product_gallery_image_id ) ), ) ); $p->set_attribute( 'data-wc-on--click', 'actions.selectImage' ); $p->set_attribute( 'data-wc-class--wc-block-product-gallery-pager__pager-item--is-active', 'state.isSelected' ); $html .= $p->get_updated_html(); } } return sprintf( '', $html ); } /** * Generates an SVG dot icon with the specified opacity. * * @param bool $is_active Whether the dot icon should be in active state. Defaults to false. * @return string The SVG dot icon HTML. */ private function get_dot_icon( $is_active = false ) { $initial_opacity = $is_active ? '1' : '0.2'; return sprintf( ' ', $initial_opacity ); } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Blocks\BlockTypes\ProductGalleryPager" not found in /htdocs/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php:106 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks('') #1 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /htdocs/wp-settings.php(704): do_action('init') #4 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php on line 106