Make WordPress Core

Changeset 13615


Ignore:
Timestamp:
03/07/2010 12:42:50 AM (15 years ago)
Author:
dd32
Message:

Don't 404 for empty custom taxonomy terms. See #12533

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r13501 r13615  
    26512651            $tax = $this->get('taxonomy');
    26522652            $slug = $this->get('term');
    2653             $term = &get_terms($tax, array( 'slug' => $slug ) );
     2653            $term = &get_terms($tax, array( 'slug' => $slug, 'hide_empty' => false ) );
    26542654            if ( is_wp_error($term) || empty($term) )
    26552655                return NULL;
Note: See TracChangeset for help on using the changeset viewer.