[2.2] Fix /shop/ base URL Non Latin issue with url decode

Fixes #6512
This commit is contained in:
Mike Jolley 2014-10-14 12:24:45 +01:00
parent 4a2a2714f6
commit e43285f677
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class WC_Admin_Permalink_Settings {
// Get shop page // Get shop page
$shop_page_id = wc_get_page_id( 'shop' ); $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' ); $product_base = _x( 'product', 'default-slug', 'woocommerce' );
$structures = array( $structures = array(