diff --git a/includes/class-wc-post-types.php b/includes/class-wc-post-types.php index 24cf034115f..5029f0ca332 100644 --- a/includes/class-wc-post-types.php +++ b/includes/class-wc-post-types.php @@ -165,7 +165,7 @@ class WC_Post_types { if ( $attribute_taxonomies = wc_get_attribute_taxonomies() ) { foreach ( $attribute_taxonomies as $tax ) { if ( $name = wc_attribute_taxonomy_name( $tax->attribute_name ) ) { - $tax->attribute_public = isset( $tax->attribute_public ) ? $tax->attribute_public : 1; + $tax->attribute_public = absint( isset( $tax->attribute_public ) ? $tax->attribute_public : 1 ); $label = ! empty( $tax->attribute_label ) ? $tax->attribute_label : $tax->attribute_name; $wc_product_attributes[ $name ] = $tax; $taxonomy_data = array( diff --git a/readme.txt b/readme.txt index 0d53f4929e4..bb62b5149d0 100644 --- a/readme.txt +++ b/readme.txt @@ -145,6 +145,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Fix - When updating shipping in cart, keep shipping calculator in DOM. * Fix - WC_TEMPLATE_DEBUG_MODE in admin. * Fix - Average product rating when ratings are not required. +* Fix - attribute_public option. = 2.3.1 - 11/02/2015 = * Fix - When the geolocation database cannot download, ensure the correct method is used to log the error.