diff --git a/classes/abstracts/abstract-wc-settings-api.php b/classes/abstracts/abstract-wc-settings-api.php index 848be17c4d9..99e9d3627e1 100644 --- a/classes/abstracts/abstract-wc-settings-api.php +++ b/classes/abstracts/abstract-wc-settings-api.php @@ -111,6 +111,8 @@ abstract class WC_Settings_API { if ( ! $this->settings || ! is_array( $this->settings ) ) { + $this->settings = array(); + // If there are no settings defined, load defaults if ( $this->form_fields ) foreach ( $this->form_fields as $k => $v )