Merge pull request #23370 from woocommerce/fix/23368
Check isset rather than empty so cart title can be removed
This commit is contained in:
commit
3dc0fcb0c7
|
@ -58,7 +58,7 @@ class WC_Widget_Cart extends WC_Widget {
|
|||
|
||||
$hide_if_empty = empty( $instance['hide_if_empty'] ) ? 0 : 1;
|
||||
|
||||
if ( empty( $instance['title'] ) ) {
|
||||
if ( ! isset( $instance['title'] ) ) {
|
||||
$instance['title'] = __( 'Cart', 'woocommerce' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue