mirror of
https://github.com/Frumph/comic-easel.git
synced 2026-07-18 18:34:32 -04:00
moved the check for disable_style_sheet option to a better position
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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']); ?> />
|
||||
|
||||
Reference in New Issue
Block a user