From 557de2205da61641b43946e606ee413b2ccacb59 Mon Sep 17 00:00:00 2001 From: Frumph Date: Sun, 14 Apr 2013 04:00:08 -0700 Subject: [PATCH] moved the check for disable_style_sheet option to a better position --- comiceasel.php | 2 ++ options/general.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/comiceasel.php b/comiceasel.php index e1c7641..757292b 100644 --- a/comiceasel.php +++ b/comiceasel.php @@ -323,10 +323,12 @@ function ceo_pluginfo($whichinfo = null) { if ( !isset($ceo_options['db_version']) || empty($ceo_options['db_version']) || (version_compare($ceo_options['db_version'], '1.1', '<')) ) { ceo_chapters_activate(); $ceo_options['db_version'] = '1.1'; + $ceo_options['disable_style_sheet'] = false; $ceo_options['display_first_comic_on_home_page'] = false; $ceo_options['disable_style_sheet'] = false; update_option('comiceasel-config', $ceo_options); } + if (!isset($ceo_options['disable_style_sheet']) || empty($ceo_options['disable_style_sheet'])) $ceo_options['disable_style_sheet'] = false; if (!isset($ceo_options['custom_post_type_slug_name']) || empty($ceo_options['custom_post_type_slug_name'])) $ceo_options['custom_post_type_slug_name'] == 'comic'; $ceo_coreinfo = wp_upload_dir(); $ceo_addinfo = array( diff --git a/options/general.php b/options/general.php index 202959b..f0bd146 100644 --- a/options/general.php +++ b/options/general.php @@ -72,7 +72,6 @@ - />