remove from code coverage and fix query

This commit is contained in:
John Bintz 2010-01-24 13:29:36 -05:00
parent 22b95c91c3
commit 9bfedbe0c9
1 changed files with 3 additions and 3 deletions

View File

@ -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
}