From 1006d5b10120b61aefa1ef005cb885bbcc01fe65 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 8 Jun 2010 14:08:33 +0000 Subject: [PATCH] Don't force post_status to publish for custom taxonomy queries. fixes #13755 git-svn-id: https://develop.svn.wordpress.org/trunk@15173 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 3c7d555a79..f39354ada5 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2061,8 +2061,6 @@ class WP_Query { } elseif ( in_array('attachment', (array)$post_type) ) { $post_status_join = true; } - if ( empty($q['post_status']) ) - $q['post_status'] = 'publish'; } else { $whichcat = " AND 0 "; }