From 38b36126ca73514b8869832541d02777ab6f6a8c Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 17 Dec 2009 18:13:48 -0800 Subject: [PATCH] comicpress-debug.php addition, check categories (needs fixed by john) Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-debug.php | 48 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/comicpress-debug.php b/comicpress-debug.php index 575cd11..d398516 100644 --- a/comicpress-debug.php +++ b/comicpress-debug.php @@ -1,7 +1,7 @@ ID); + if (count(array_intersect($comic_categories, wp_get_post_categories($post->ID))) > 0) { + $founderror = TRUE; + } + endwhile; + } +// if ($founderror) { + $error[] = array('header', __('A post is in both a comic category and blog category.','comicpress')); + $error[] = __('*duel category error message and fix*','comicpress'); +// } } if (!empty($error)) { @@ -37,6 +65,8 @@ function comicpress_notice_debug() { ComicPress doesn't seem to be fully installed at this time, check out these messages.