attr's fix in the related posts, global the $comicpress_options right off, set the enable_comment count in feed var in the syndication.php

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-27 05:00:25 -08:00
parent 98853e20b1
commit 3150c96c29
3 changed files with 11 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class ComicPressRelatedPosts {
function _handle_shortcode_attrs($attrs) { function _handle_shortcode_attrs($attrs) {
return shortcode_atts(array( return shortcode_atts(array(
'limit' => '5', 'limit' => '5',
), $atts); ), $attrs);
} }
function _new_comicpressstoryline() { return new ComicPressStoryline(); } function _new_comicpressstoryline() { return new ComicPressStoryline(); }

View File

@ -1,5 +1,7 @@
<?php <?php
global $comicpress_options;
// the_post_thumbnail('thumbnail/medium/full'); // the_post_thumbnail('thumbnail/medium/full');
if (function_exists('add_theme_support')) { if (function_exists('add_theme_support')) {
add_theme_support( 'post-thumbnails' ); add_theme_support( 'post-thumbnails' );
@ -44,6 +46,7 @@ function __comicpress_init() {
global $comicpress_options, $__comicpress_handlable_classes; global $comicpress_options, $__comicpress_handlable_classes;
$comicpress_options = array(); $comicpress_options = array();
// Check if the $comicpress_options exist, if not set defaults // Check if the $comicpress_options exist, if not set defaults
$comicpress_options = comicpress_load_options(); $comicpress_options = comicpress_load_options();
// xili-language plugin check // xili-language plugin check
@ -122,6 +125,8 @@ if (!empty($wpmu_version)) {
function comicpress_load_options() { function comicpress_load_options() {
global $comicpress_options; global $comicpress_options;
$comicpress_options = get_option('comicpress_options'); $comicpress_options = get_option('comicpress_options');
if (empty($comicpress_options)) { if (empty($comicpress_options)) {
$comicpress_options['comicpress_version'] = '2.9.0.9'; $comicpress_options['comicpress_version'] = '2.9.0.9';

View File

@ -86,5 +86,8 @@ function comicpress_export_wp() {
remove_filter('the_title_rss', 'comicpress_the_title_rss'); remove_filter('the_title_rss', 'comicpress_the_title_rss');
} }
global $comicpress_options;
if ($comicpress_options['enable_comment_count_in_rss']) {
add_filter('the_title_rss', 'comicpress_the_title_rss'); add_filter('the_title_rss', 'comicpress_the_title_rss');
add_action('export_wp', 'comicpress_export_wp'); add_action('export_wp', 'comicpress_export_wp');
}