Settings should be an array

This commit is contained in:
Mike Jolley 2013-02-11 15:07:51 +00:00
parent d72d339862
commit 6a24222dfb
1 changed files with 2 additions and 0 deletions

View File

@ -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 )