diff --git a/js/customize-posts.js b/js/customize-posts.js index b2a3c8a..e45d0e7 100644 --- a/js/customize-posts.js +++ b/js/customize-posts.js @@ -354,7 +354,11 @@ setting = api( id ); if ( ! setting ) { - SettingConstructor = api.settingConstructor[ settingArgs.type ] || api.Setting; + if ( ! _.isUndefined( api.settingConstructor ) && api.settingConstructor[ settingArgs.type ] ) { + SettingConstructor = api.settingConstructor[ settingArgs.type ]; + } else { + SettingConstructor = api.Setting; + } settingParams = _.extend( {}, settingArgs,