make sure get_settings works for just one section
This commit is contained in:
parent
807b2e1e29
commit
09cdb35a1e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue