From 3981dc7dd8d1b0f25a5d1d9dfd9c0802913ee979 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 17 Oct 2019 09:40:18 -0400 Subject: [PATCH] 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 --- admin/glm-theme-options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.17.1