widget title for attributes

This commit is contained in:
Mike Jolley 2011-08-31 14:06:26 +01:00
parent 6db92c27b8
commit 9d144cdedb
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class WooCommerce_Widget_Layered_Nav extends WP_Widget {
/** @see WP_Widget::update */
function update( $new_instance, $old_instance ) {
if (!isset($new_instance['title']) || empty($new_instance['title'])) $new_instance['title'] = ucwords($new_instance['attribute']);
if (!isset($new_instance['title']) || empty($new_instance['title'])) $new_instance['title'] = woocommerce::attribute_label($new_instance['attribute']);
$instance['title'] = strip_tags(stripslashes($new_instance['title']));
$instance['attribute'] = stripslashes($new_instance['attribute']);
return $instance;

View File

@ -93,7 +93,7 @@ include_once( 'classes/gateways/gateway-banktransfer.php' );
include_once( 'classes/gateways/gateway-cheque.php' );
include_once( 'classes/gateways/gateway-moneybookers.php' );
include_once( 'classes/gateways/gateway-paypal.php' );
include_once( 'classes/gateways/gateway-payfast.php' );
//include_once( 'classes/gateways/gateway-payfast.php' );
/**
* Init class singletons