Skip to content

Commit e9dd1d0

Browse files
Fix PHPStan error
1 parent 31a85ab commit e9dd1d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/compatibilities/woocommerce.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public function should_load_early() {
9191
* @return array
9292
*/
9393
public function filter_cart_item_image( $image, $attachment_id, $size ) {
94+
if ( ! function_exists( 'is_cart' ) ) {
95+
return $image;
96+
}
9497
if ( ! is_cart() ) {
9598
return $image;
9699
}

0 commit comments

Comments
 (0)