Merge pull request #5738 from SiR-DanieL/patch-3
Improved woocommerce_placeholder_img filter
This commit is contained in:
commit
1389dd2e86
|
@ -279,7 +279,7 @@ function wc_placeholder_img_src() {
|
|||
function wc_placeholder_img( $size = 'shop_thumbnail' ) {
|
||||
$dimensions = wc_get_image_size( $size );
|
||||
|
||||
return apply_filters('woocommerce_placeholder_img', '<img src="' . wc_placeholder_img_src() . '" alt="' . __( 'Placeholder', 'woocommerce' ) . '" width="' . esc_attr( $dimensions['width'] ) . '" class="woocommerce-placeholder wp-post-image" height="' . esc_attr( $dimensions['height'] ) . '" />' );
|
||||
return apply_filters('woocommerce_placeholder_img', '<img src="' . wc_placeholder_img_src() . '" alt="' . __( 'Placeholder', 'woocommerce' ) . '" width="' . esc_attr( $dimensions['width'] ) . '" class="woocommerce-placeholder wp-post-image" height="' . esc_attr( $dimensions['height'] ) . '" />', $size, $dimensions );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue