From 320712fb2cd3fe181c9885f98fc5c465bbdcf1db Mon Sep 17 00:00:00 2001 From: Joshua T Flowers Date: Thu, 23 Apr 2020 21:01:38 +0300 Subject: [PATCH] Reset profiler when visiting old obw URL (https://github.com/woocommerce/woocommerce-admin/pull/4166) --- plugins/woocommerce-admin/src/Features/Onboarding.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/src/Features/Onboarding.php b/plugins/woocommerce-admin/src/Features/Onboarding.php index 1fb493a922f..06cca1869d1 100644 --- a/plugins/woocommerce-admin/src/Features/Onboarding.php +++ b/plugins/woocommerce-admin/src/Features/Onboarding.php @@ -149,7 +149,7 @@ class Onboarding { if ( 'wc-setup' === $current_page ) { delete_transient( '_wc_activation_redirect' ); - wp_safe_redirect( wc_admin_url() ); + wp_safe_redirect( wc_admin_url( '&reset_profiler=1' ) ); } }