fixing json error with the default options in the base class. moving the defines...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 Oct 2019 13:40:18 +0000 (09:40 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 17 Oct 2019 13:40:18 +0000 (09:40 -0400)
admin/glm-theme-options.php

index 76bb3ce..ccd3c36 100644 (file)
@@ -43,7 +43,7 @@ if(!class_exists('GlmThemOptions')){
         }
         private function set_options(){
             if( !get_option(  $this->glm_theme_options ) ){
-                update_option(  $this->glm_theme_options, 'default options');
+                update_option(  $this->glm_theme_options, json_encode('default options') );
             }
         }
         public function glm_update_theme_options() {