From fd7b910afa6f4ab41b28896ae3a5796086817181 Mon Sep 17 00:00:00 2001 From: Fredrik Forsmo Date: Wed, 29 Jun 2016 09:27:28 +0200 Subject: [PATCH] Add isset to `home` args to fix PHP Notice Fixes #11282 --- includes/wc-template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index f31f47a6819..425a2b80f9d 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1432,7 +1432,7 @@ if ( ! function_exists( 'woocommerce_breadcrumb' ) ) { $breadcrumbs = new WC_Breadcrumb(); - if ( $args['home'] ) { + if ( isset( $args['home'] ) ) { $breadcrumbs->add_crumb( $args['home'], apply_filters( 'woocommerce_breadcrumb_home_url', home_url() ) ); }