Fix attribute base

This commit is contained in:
Mike Jolley 2013-03-12 14:39:57 +00:00
parent 3d3df8f70d
commit 84b451e214
2 changed files with 2 additions and 1 deletions

View File

@ -172,6 +172,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Codestyling bug with meta.php
* Fix - Icon replacement in .woocommerce-info for Gecko
* Fix - prettyPhoto next/prev links and thumbnail navigation no longer appear when there's only one attachment
* Fix - Attribute base
* Localization - Added indian rupees
= 2.0.3 - 11/03/2013 =

View File

@ -759,7 +759,7 @@ class Woocommerce {
// Get bases
$product_category_slug = empty( $permalinks['category_base'] ) ? _x( 'product-category', 'slug', 'woocommerce' ) : $permalinks['category_base'];
$product_tag_slug = empty( $permalinks['tag_base'] ) ? _x( 'product-tag', 'slug', 'woocommerce' ) : $permalinks['tag_base'];
$product_attribute_base = empty( $permalinks['attribute_base'] ) ? '' : $permalinks['attribute_base'];
$product_attribute_base = empty( $permalinks['attribute_base'] ) ? '' : trailingslashit( $permalinks['attribute_base'] );
$product_permalink = empty( $permalinks['product_base'] ) ? _x( 'product', 'slug', 'woocommerce' ) : $permalinks['product_base'];
if ( $product_permalink )