Merge pull request #15400 from woocommerce/update/attribute-value-output
use make clickable for urls
This commit is contained in:
commit
569642661c
|
@ -15,7 +15,7 @@
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @author WooThemes
|
* @author WooThemes
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
* @version 3.0.0
|
* @version 3.1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
@ -60,7 +60,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
$values = $attribute->get_options();
|
$values = $attribute->get_options();
|
||||||
|
|
||||||
foreach ( $values as &$value ) {
|
foreach ( $values as &$value ) {
|
||||||
$value = esc_html( $value );
|
$value = make_clickable( esc_html( $value ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue