From 2350f5e02a5cc9a3364ff19dab5d8459b3adc836 Mon Sep 17 00:00:00 2001 From: paul sealock Date: Thu, 15 Aug 2024 20:45:35 +1200 Subject: [PATCH] save current section --- .../includes/admin/settings/class-wc-settings-page.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php b/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php index 5b196ed1b11..7848498401c 100644 --- a/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php +++ b/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php @@ -180,6 +180,8 @@ if ( ! class_exists( 'WC_Settings_Page', false ) ) : 'label' => html_entity_decode( $section_label ), 'settings' => $section_settings_data, ); + + $current_section = $saved_current_section; } $pages[ $this->id ] = array( 'label' => html_entity_decode( $this->label ),