From a19266b95554cbba9c6d8e82c0d2e3573f68f222 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Mon, 17 Feb 2014 11:29:12 +0100 Subject: [PATCH] esc_attr instead of esc_url to preserve spaces in img src #4842 --- includes/admin/class-wc-admin-taxonomies.php | 4 ++-- includes/wc-template-functions.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/admin/class-wc-admin-taxonomies.php b/includes/admin/class-wc-admin-taxonomies.php index 06dff3fb71b..a879075f36c 100644 --- a/includes/admin/class-wc-admin-taxonomies.php +++ b/includes/admin/class-wc-admin-taxonomies.php @@ -318,7 +318,7 @@ class WC_Admin_Taxonomies { else $image = wc_placeholder_img_src(); - $columns .= 'Thumbnail'; + $columns .= 'Thumbnail'; } @@ -326,4 +326,4 @@ class WC_Admin_Taxonomies { } } -new WC_Admin_Taxonomies(); \ No newline at end of file +new WC_Admin_Taxonomies(); diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 6619e5cbc3b..4dc1e64c0e8 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1486,7 +1486,7 @@ if ( ! function_exists( 'woocommerce_subcategory_thumbnail' ) ) { } if ( $image ) - echo '' . esc_attr( $category->name ) . ''; + echo '' . esc_attr( $category->name ) . ''; } }