updated new option to be off by default and only work on single pages

This commit is contained in:
Frumph
2016-10-10 15:08:10 -07:00
parent a6118f1d43
commit 646df0aebe
3 changed files with 9 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
Plugin Name: Comic Easel
Plugin URI: http://comiceasel.com
Description: Comic Easel allows you to incorporate a WebComic using the WordPress Media Library functionality with Navigation into almost all WordPress themes. With just a few modifications of adding injection do_action locations into a theme, you can have the theme of your choice display and manage a webcomic.
Version: 1.11
Version: 1.12
Author: Philip M. Hofer (Frumph)
Author URI: http://frumph.net/
@@ -445,7 +445,7 @@ function ceo_load_options($reset = false) {
'enable_blog_on_chapter_landing' => false,
'enable_comments_on_chapter_landing' => false,
'default_nav_bar_chapter_goes_to_archive' => false,
'remove_post_thumbnail' => true
'remove_post_thumbnail' => false
) as $field => $value) {
$ceo_config[$field] = $value;
}
@@ -515,7 +515,7 @@ function ceo_pluginfo($whichinfo = null) {
}
if (version_compare($ceo_options['db_version'], '1.9.7', '<')) {
$ceo_options['db_version'] = '1.9.7';
$ceo_options['remove_post_thumbnail'] = true;
$ceo_options['remove_post_thumbnail'] = false;
update_option('comiceasel-config', $ceo_options);
}
$ceo_coreinfo = wp_upload_dir();
@@ -534,7 +534,7 @@ function ceo_pluginfo($whichinfo = null) {
// comic-easel plugin directory/url
'plugin_url' => plugin_dir_url(__FILE__),
'plugin_path' => plugin_dir_path(__FILE__),
'version' => '1.11'
'version' => '1.12'
);
// Combine em.
$ceo_pluginfo = array_merge($ceo_pluginfo, $ceo_addinfo);

View File

@@ -146,5 +146,5 @@ function ceo_insert_comic_transcript_into_posts($content) {
function ceo_clear_post_thumbnail_on_comics($content) {
global $post;
if ($post->post_type == 'comic') return '';
if (is_single() && $post->post_type == 'comic') return '';
}

View File

@@ -4,7 +4,7 @@ Contributors: Frumph
Tags: comiceasel, easel, webcomic, comic, webcomic
Requires at least: 4.5
Tested up to: 4.6.1
Stable tag: 1.11
Stable tag: 1.12
Donate link: http://frumph.net
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -128,6 +128,9 @@ The comic navigation widget is only seen if you have the comic sidebar's enabled
== Changelog ==
= 1.12 =
* Changed the new option to be off by default and only run on is_single pages if then
= 1.11 =
* Add option to 'remove' featured images from comic posts on non-ComicPress themes automagically, if theme uses the function the_post_thumbnail()