We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f04d387 commit 7ab21b4Copy full SHA for 7ab21b4
inc/compatibilities/woocommerce.php
@@ -24,7 +24,7 @@ public function should_load() {
24
public function register() {
25
if ( Optml_Main::instance()->admin->settings->use_lazyload() ) {
26
add_filter( 'optml_lazyload_early_flags', [ $this, 'add_lazyload_early_flag' ], PHP_INT_MAX, 1 );
27
- if ( \Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils::is_cart_block_default() ) {
+ if ( class_exists( '\Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils', false ) && \Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils::is_cart_block_default() ) {
28
add_filter( 'image_downsize', [ Optml_Tag_Replacer::instance(), 'filter_image_downsize' ], PHP_INT_MAX, 3 );
29
}
30
0 commit comments