From 9bfedbe0c90ca45f1fa7f97dba34d3c6f0e25204 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 24 Jan 2010 13:29:36 -0500 Subject: [PATCH] remove from code coverage and fix query --- classes/ComicPressDBInterface.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/ComicPressDBInterface.inc b/classes/ComicPressDBInterface.inc index b47b3c5..47d0194 100644 --- a/classes/ComicPressDBInterface.inc +++ b/classes/ComicPressDBInterface.inc @@ -105,14 +105,12 @@ class ComicPressDBInterface { */ function get_next_post($categories = null, $override_post = null) { return $this->get_adjacent_post($categories, true, $override_post); } - // @codeCoverageIgnoreEnd - function get_parent_child_category_ids() { global $wpdb; $parent_child_categories = array(); - $result = $wpdb->get_results("SELECT term_id, parent FROM $wpdb->term_taxonomy", ARRAY_A); + $result = $wpdb->get_results("SELECT term_id, parent FROM $wpdb->term_taxonomy WHERE `taxonomy` = 'category'", ARRAY_A); if (!empty($result)) { foreach ($result as $row) { $parent_child_categories[$row['term_id']] = $row['parent']; @@ -121,4 +119,6 @@ class ComicPressDBInterface { return $parent_child_categories; } + + // @codeCoverageIgnoreEnd }