From: Anthony Talarico Date: Thu, 17 Oct 2019 13:40:18 +0000 (-0400) Subject: fixing json error with the default options in the base class. moving the defines... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=3981dc7dd8d1b0f25a5d1d9dfd9c0802913ee979;p=WP-Themes%2FglmTheme.git fixing json error with the default options in the base class. moving the defines file to the root level so it can be used in the front classes --- diff --git a/admin/glm-theme-options.php b/admin/glm-theme-options.php index 76bb3ce..ccd3c36 100644 --- a/admin/glm-theme-options.php +++ b/admin/glm-theme-options.php @@ -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() {