Merge pull request #11283 from frozzare/patch-1
Add isset to `home` args to fix PHP Notice
This commit is contained in:
commit
0780d94d0b
|
@ -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() ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue