diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 4eb40ff3742..b68bc6822ba 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -288,6 +288,10 @@ class WC_Install { $settings = WC_Admin_Settings::get_settings_pages(); foreach ( $settings as $section ) { + if ( ! method_exists( $section, 'get_settings' ) ) { + continue; + } + foreach ( $section->get_settings() as $value ) { if ( isset( $value['default'] ) && isset( $value['id'] ) ) { $autoload = isset( $value['autoload'] ) ? (bool) $value['autoload'] : true;