From d2232722eadf6172d3a54142ee9cfbc8c39f1abb Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 7 Mar 2010 00:42:50 +0000 Subject: [PATCH] Don't 404 for empty custom taxonomy terms. See #12533 git-svn-id: https://develop.svn.wordpress.org/trunk@13615 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 463840b55a..a3bae6de38 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2650,7 +2650,7 @@ class WP_Query { } elseif ( $this->is_tax ) { $tax = $this->get('taxonomy'); $slug = $this->get('term'); - $term = &get_terms($tax, array( 'slug' => $slug ) ); + $term = &get_terms($tax, array( 'slug' => $slug, 'hide_empty' => false ) ); if ( is_wp_error($term) || empty($term) ) return NULL; $term = $term[0];