From e43285f677208b009bd9400f1d0bae676fb59741 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 14 Oct 2014 12:24:45 +0100 Subject: [PATCH] [2.2] Fix /shop/ base URL Non Latin issue with url decode Fixes #6512 --- includes/admin/class-wc-admin-permalink-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-permalink-settings.php b/includes/admin/class-wc-admin-permalink-settings.php index 754e3bf97f9..4dcafe38876 100644 --- a/includes/admin/class-wc-admin-permalink-settings.php +++ b/includes/admin/class-wc-admin-permalink-settings.php @@ -99,7 +99,7 @@ class WC_Admin_Permalink_Settings { // Get shop page $shop_page_id = wc_get_page_id( 'shop' ); - $base_slug = ( $shop_page_id > 0 && get_post( $shop_page_id ) ) ? get_page_uri( $shop_page_id ) : _x( 'shop', 'default-slug', 'woocommerce' ); + $base_slug = urldecode( ( $shop_page_id > 0 && get_post( $shop_page_id ) ) ? get_page_uri( $shop_page_id ) : _x( 'shop', 'default-slug', 'woocommerce' ) ); $product_base = _x( 'product', 'default-slug', 'woocommerce' ); $structures = array(