Merge pull request #18982 from woocommerce/tweak/get-image-filter

Pass image to get_image_filter as well
This commit is contained in:
Mike Jolley 2018-02-19 13:15:55 +00:00 committed by GitHub
commit f1a69688fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1808,7 +1808,8 @@ class WC_Product extends WC_Abstract_Legacy_Product {
} else { } else {
$image = ''; $image = '';
} }
return apply_filters( 'woocommerce_product_get_image', wc_get_relative_url( $image ), $this, $size, $attr, $placeholder );
return apply_filters( 'woocommerce_product_get_image', wc_get_relative_url( $image ), $this, $size, $attr, $placeholder, $image );
} }
/** /**