Random NOTICE fixes with WP_DEBUG turned on.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-25 10:06:14 -08:00
parent f39c22bfcb
commit 3153800485
6 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,7 @@
<?php
global $comicpress_options;
// the_post_thumbnail('thumbnail/medium/full');
if (function_exists('add_theme_support')) {
add_theme_support( 'post-thumbnails' );
@ -394,7 +396,7 @@ function get_adjacent_comic($category, $previous = false) {
* Find the terminal post in a specific category.
*/
function get_terminal_post_in_category($categoryID, $first = true) {
global $post;
global $post, $wp_query;
$temp = $wp_query; $wp_query = null;
$sortOrder = $first ? "asc" : "desc";

View File

@ -51,7 +51,7 @@ function comicpress_display_post_category() {
global $post, $wp_query, $comicpress_options;
if (!$comicpress_options['disable_categories_in_posts']) {
if (get_option('comicpress-enable-storyline-support') == 1 && in_comic_category()) {
$post_category = "<ul class=\"storyline-cats\"><li class=\"storyline-root\">". get_the_category_list(' &raquo; </li><li>', multiple)."</li></ul>\r\n";
$post_category = "<ul class=\"storyline-cats\"><li class=\"storyline-root\">". get_the_category_list(' &raquo; </li><li>', 'multiple')."</li></ul>\r\n";
} else {
$post_category = "<div class=\"post-cat\">". __('Posted In: ','comicpress') .get_the_category_list(',')."</div>\r\n";
}
@ -101,7 +101,7 @@ function comicpress_display_blog_navigation() {
}
function comicpress_display_comic_navigation() {
global $post, $wp_query;
global $post, $wp_query, $comicpress_options;
if (!$comicpress_options['disable_default_comic_nav']) {
$first_comic = get_first_comic_permalink();
$last_comic = get_last_comic_permalink();

View File

@ -21,7 +21,7 @@ add_action('edit_user_profile', 'comicpress_profile_members_only');
add_action('profile_update', 'comicpress_profile_members_only_save');
add_filter('pre_get_posts','comicpress_members_filter');
// add_filter('pre_get_posts','comicpress_members_filter');
function comicpress_members_filter($query) {
global $comicpress_options, $current_user;

View File

@ -21,7 +21,7 @@ function comicpress_show_mood_in_post() {
if (!empty($moods_directory) && $moods_directory != 'none') {
$mood_file = get_post_meta( get_the_ID(), "mood", true );
if (!empty($mood_file) && $mood_file != '') {
$mood = explode(".", $mood);
$mood = explode(".", $mood_file);
$mood = reset($mood);
if ( !empty($mood_file) && file_exists(get_stylesheet_directory() . '/images/moods/'.$moods_directory.'/'.$mood_file) ) { ?>
<div class="post-mood post-<?php echo $mood; ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/moods/<?php echo $moods_directory; ?>/<?php echo $mood_file; ?>" alt="<?php echo $mood; ?>" title="<?php echo $mood; ?>" /></div>

View File

@ -16,8 +16,8 @@ Author URI: http://szub.net
*/
function szub_search_custom_join($join) {
global $wpdb;
if( is_search() && szub_is_search_key() ) {
global $wpdb, $wp_query;
if( /* is_search() && */ szub_is_search_key() ) {
$join = " LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id ";
}
return $join;

View File

@ -4,7 +4,7 @@ add_shortcode( 'version', 'comicpress_ver_shortcode' );
function comicpress_ver_shortcode( $atts, $content = null ) {
global $comicpress_options;
return '<div class="comicpress_ver">'.$comicpress_version['comicpress_version'].'</div>';
return '<div class="comicpress_ver">'.$comicpress_options['comicpress_version'].'</div>';
}
?>