one more fix

This commit is contained in:
John Bintz 2009-10-21 22:43:44 -04:00
parent eadcec89f3
commit 8ece0d6321
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class ComicPressDBInterface {
* Find the terminal post in a specific category.
*/
function get_terminal_post_in_category($category_id, $first = true) {
global $wp_query;
$temp = $wp_query; $wp_query = null;
$sort_order = $first ? "asc" : "desc";
$terminal_comic_query = new WP_Query();