make sure get_settings works for just one section

This commit is contained in:
paul sealock 2024-10-17 14:59:02 +13:00
parent 807b2e1e29
commit 09cdb35a1e
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ if ( ! class_exists( 'WC_Settings_Page', false ) ) :
$sections_data = array();
foreach ( $sections as $section_id => $section_label ) {
$section_settings = $this->get_settings_for_section( $section_id );
$section_settings = count( $sections ) > 1 ? $this->get_settings_for_section( $section_id ) : $this->get_settings();
$section_settings_data = array();
global $current_section;