moved the check for disable_style_sheet option to a better position

This commit is contained in:
Frumph
2013-04-14 04:00:08 -07:00
parent be11457bd1
commit 557de2205d
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -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(
-1
View File
@@ -72,7 +72,6 @@
</td>
</tr>
<tr>
<?php if (!isset($ceo_options['disable_style_sheet'])) $ceo_options['disable_style_sheet'] = 0; ?>
<th scope="row"><label for="disable_style_sheet"><?php _e('Disable the default stylesheets. comiceasel.css and navstyle.css','comiceasel'); ?></label></th>
<td>
<input id="disable_style_sheet" name="disable_style_sheet" type="checkbox" value="1" <?php checked(true, $ceo_options['disable_style_sheet']); ?> />