Merge pull request #15126 from woocommerce/fix/15111

Fix shop page when using shop base and UTF8 shop page slug
This commit is contained in:
Claudio Sanches 2017-05-17 14:22:57 -03:00 committed by GitHub
commit f5bda12e42
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ class WC_Post_types {
'rewrite' => $permalinks['product_rewrite_slug'] ? array( 'slug' => $permalinks['product_rewrite_slug'], 'with_front' => false, 'feeds' => true ) : false,
'query_var' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', 'publicize', 'wpcom-markdown' ),
'has_archive' => ( $shop_page_id = wc_get_page_id( 'shop' ) ) && get_post( $shop_page_id ) ? get_page_uri( $shop_page_id ) : 'shop',
'has_archive' => ( $shop_page_id = wc_get_page_id( 'shop' ) ) && get_post( $shop_page_id ) ? urldecode( get_page_uri( $shop_page_id ) ) : 'shop',
'show_in_nav_menus' => true,
'show_in_rest' => true,
)