Merge pull request #11283 from frozzare/patch-1

Add isset to `home` args to fix PHP Notice
This commit is contained in:
Mike Jolley 2016-06-29 10:43:43 +01:00 committed by GitHub
commit 0780d94d0b
1 changed files with 1 additions and 1 deletions

View File

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