From 0ad37a6426274a96e3adffb3cf34eef900c8d352 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 5 Feb 2018 17:10:39 +0000 Subject: [PATCH] Use add query arg in customizer links --- includes/admin/settings/class-wc-settings-general.php | 5 ++++- includes/admin/settings/class-wc-settings-products.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/admin/settings/class-wc-settings-general.php b/includes/admin/settings/class-wc-settings-general.php index e24d196d1b2..147e06dafd9 100644 --- a/includes/admin/settings/class-wc-settings-general.php +++ b/includes/admin/settings/class-wc-settings-general.php @@ -285,7 +285,10 @@ class WC_Settings_General extends WC_Settings_Page {

in the Customizer.', 'woocommerce' ), esc_url( admin_url( 'customize.php?url=' . wc_get_page_permalink( 'shop' ) . '&autofocus[panel]=woocommerce' ) ) ), array( + echo wp_kses( sprintf( __( 'Looking for the store notice setting? It can now be found in the Customizer.', 'woocommerce' ), esc_url( add_query_arg( array( + 'autofocus[panel]' => 'woocommerce', + 'url' => wc_get_page_permalink( 'shop' ), + ), admin_url( 'customize.php' ) ) ) ), array( 'a' => array( 'href' => array(), 'title' => array(), diff --git a/includes/admin/settings/class-wc-settings-products.php b/includes/admin/settings/class-wc-settings-products.php index e3d15b69f14..5465544fbbf 100644 --- a/includes/admin/settings/class-wc-settings-products.php +++ b/includes/admin/settings/class-wc-settings-products.php @@ -75,7 +75,10 @@ class WC_Settings_Products extends WC_Settings_Page {

Go see them in action here.', 'woocommerce' ), esc_url( admin_url( 'customize.php?url=' . wc_get_page_permalink( 'shop' ) . '&autofocus[panel]=woocommerce' ) ) ), array( + echo wp_kses( sprintf( __( 'Looking for the product display options? They can now be found in the Customizer. Go see them in action here.', 'woocommerce' ), esc_url( add_query_arg( array( + 'autofocus[panel]' => 'woocommerce', + 'url' => wc_get_page_permalink( 'shop' ), + ), admin_url( 'customize.php' ) ) ) ), array( 'a' => array( 'href' => array(), 'title' => array(),