WordPress.org

Make WordPress Core

Ticket #10721: query.php.diff

File query.php.diff, 461 bytes (added by scribu, 9 years ago)

working patch

  • wp-includes/query.php

     
    254254        if ( empty($slug) )
    255255                return true;
    256256
    257         $term = $wp_query->get_queried_object();
    258 
    259         $slug = (array) $slug;
    260 
    261         if ( in_array( $term->slug, $slug ) )
    262                 return true;
    263 
    264         return false;
     257        return in_array( get_query_var('taxonomy'), (array) $slug );
    265258}
    266259
    267260/**