Update wc-template-functions.php
a little bug with esc_url instead esc_attr and result was (height="http://450")
This commit is contained in:
parent
a382733c51
commit
6bf855709a
|
@ -1472,7 +1472,7 @@ if ( ! function_exists( 'woocommerce_subcategory_thumbnail' ) ) {
|
|||
}
|
||||
|
||||
if ( $image )
|
||||
echo '<img src="' . esc_url( $image ) . '" alt="' . esc_attr( $category->name ) . '" width="' . esc_attr( $dimensions['width'] ) . '" height="' . esc_url( $dimensions['height'] ) . '" />';
|
||||
echo '<img src="' . esc_url( $image ) . '" alt="' . esc_attr( $category->name ) . '" width="' . esc_attr( $dimensions['width'] ) . '" height="' . esc_attr( $dimensions['height'] ) . '" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue