From a29799eb85ee7d1324eaa13da6a00325669c0659 Mon Sep 17 00:00:00 2001 From: Jonathan Belcher Date: Tue, 23 Oct 2018 19:12:49 -0400 Subject: [PATCH] Fixes PHP errors caused by linting fixes (https://github.com/woocommerce/woocommerce-admin/pull/650) --- plugins/woocommerce-admin/lib/common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/lib/common.php b/plugins/woocommerce-admin/lib/common.php index 4903e934179..75b833b4ba7 100644 --- a/plugins/woocommerce-admin/lib/common.php +++ b/plugins/woocommerce-admin/lib/common.php @@ -65,8 +65,9 @@ function wc_admin_get_embed_breadcrumbs() { 'wc-settings' => 'general', 'wc-status' => 'status', ); + $tab = ''; $get_tab = isset( $_GET['tab'] ) && sanitize_text_field( wp_unslash( $_GET['tab'] ) ); - if ( ! isset( $_GET['page'] ) ) { + if ( isset( $_GET['page'] ) ) { if ( in_array( wp_unslash( $_GET['page'] ), array_keys( $pages_with_tabs ) ) ) { $tab = ! empty( $get_tab ) ? $get_tab . '-' : $pages_with_tabs[ $get_page ] . '-'; }