From c82323609840f64222343740308cd950ce7f08bc Mon Sep 17 00:00:00 2001 From: Aristeides Stathopoulos Date: Fri, 2 Sep 2016 00:33:36 +0300 Subject: [PATCH] Fix failing tests. --- includes/widgets/class-wc-widget-layered-nav.php | 4 ++-- templates/emails/email-order-items.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/widgets/class-wc-widget-layered-nav.php b/includes/widgets/class-wc-widget-layered-nav.php index 9c0ed1f84d5..2bdbd301cc1 100644 --- a/includes/widgets/class-wc-widget-layered-nav.php +++ b/includes/widgets/class-wc-widget-layered-nav.php @@ -248,9 +248,9 @@ class WC_Widget_Layered_Nav extends WC_Widget { echo ''; wc_enqueue_js( " - jQuery( '.dropdown_layered_nav_". esc_js( $taxonomy_filter_name ) . "' ).change( function() { + jQuery( '.dropdown_layered_nav_" . esc_js( $taxonomy_filter_name ) . "' ).change( function() { var slug = jQuery( this ).val(); - location.href = '" . preg_replace( '%\/page\/[0-9]+%', '', str_replace( array( '&', '%2C' ), array( '&', ',' ), esc_js( add_query_arg( 'filtering', '1', remove_query_arg( array( 'page', 'filter_' . $taxonomy_filter_name ) ) ) ) ) ) . "&filter_". esc_js( $taxonomy_filter_name ) . "=' + slug; + location.href = '" . preg_replace( '%\/page\/[0-9]+%', '', str_replace( array( '&', '%2C' ), array( '&', ',' ), esc_js( add_query_arg( 'filtering', '1', remove_query_arg( array( 'page', 'filter_' . $taxonomy_filter_name ) ) ) ) ) ) . "&filter_" . esc_js( $taxonomy_filter_name ) . "=' + slug; }); " ); } diff --git a/templates/emails/email-order-items.php b/templates/emails/email-order-items.php index bba1deec5fe..0a53cfe4551 100644 --- a/templates/emails/email-order-items.php +++ b/templates/emails/email-order-items.php @@ -29,7 +29,7 @@ foreach ( $items as $item_id => $item ) : // Show title/image etc if ( $show_image ) { - echo apply_filters( 'woocommerce_order_item_thumbnail', '
' . esc_attr__( 'Product Image', 'woocommerce' ) . '
', $item ); + echo apply_filters( 'woocommerce_order_item_thumbnail', '
' . esc_attr__( 'Product Image', 'woocommerce' ) . '
', $item ); } // Product name