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:
alexcsandru 2014-01-19 10:14:56 +02:00
parent a382733c51
commit 6bf855709a
1 changed files with 1 additions and 1 deletions

View File

@ -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'] ) . '" />';
}
}