Settings should be an array
This commit is contained in:
parent
d72d339862
commit
6a24222dfb
|
@ -111,6 +111,8 @@ abstract class WC_Settings_API {
|
||||||
|
|
||||||
if ( ! $this->settings || ! is_array( $this->settings ) ) {
|
if ( ! $this->settings || ! is_array( $this->settings ) ) {
|
||||||
|
|
||||||
|
$this->settings = array();
|
||||||
|
|
||||||
// If there are no settings defined, load defaults
|
// If there are no settings defined, load defaults
|
||||||
if ( $this->form_fields )
|
if ( $this->form_fields )
|
||||||
foreach ( $this->form_fields as $k => $v )
|
foreach ( $this->form_fields as $k => $v )
|
||||||
|
|
Loading…
Reference in New Issue