widget title for attributes
This commit is contained in:
parent
6db92c27b8
commit
9d144cdedb
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue