Merge pull request #23370 from woocommerce/fix/23368

Check isset rather than empty so cart title can be removed
This commit is contained in:
Mike Jolley 2019-04-18 18:39:06 +01:00 committed by GitHub
commit 3dc0fcb0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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' );
}