Skip to content

Commit

Permalink
Remove class_exists autoload args
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Sep 2, 2024
1 parent 7ab21b4 commit d8a38b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/compatibilities/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function should_load() {
public function register() {
if ( Optml_Main::instance()->admin->settings->use_lazyload() ) {
add_filter( 'optml_lazyload_early_flags', [ $this, 'add_lazyload_early_flag' ], PHP_INT_MAX, 1 );
if ( class_exists( '\Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils', false ) && \Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils::is_cart_block_default() ) {
if ( class_exists( '\Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils' ) && \Automattic\WooCommerce\Blocks\Utils\CartCheckoutUtils::is_cart_block_default() ) {
add_filter( 'image_downsize', [ Optml_Tag_Replacer::instance(), 'filter_image_downsize' ], PHP_INT_MAX, 3 );
}
}
Expand Down

0 comments on commit d8a38b1

Please sign in to comment.