[wp-trac] [WordPress Trac] #12659: Hierarchical Taxonomy URL's do not include parent terms

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 22 21:12:28 UTC 2010


#12659: Hierarchical Taxonomy URL's do not include parent terms
-------------------------+--------------------------------------------------
 Reporter:  dd32         |       Owner:  dd32       
     Type:  enhancement  |      Status:  assigned   
 Priority:  normal       |   Milestone:  3.1        
Component:  Taxonomy     |     Version:  3.0        
 Severity:  normal       |    Keywords:  needs-patch
-------------------------+--------------------------------------------------
Changes (by scribu):

  * keywords:  has-patch needs-testing => needs-patch


Comment:

 [15825] introduces this notice when viewing a category page:

 Notice: Undefined index: taxonomy in /home/cristi/svn/wp/wp-
 includes/query.php on line 1469:

 {{{
         if ( $taxonomy == $q['taxonomy'] )
                 $q['term'] = basename($q['term']);
 }}}

 I don't think those lines should be there at all.

 Either we set 'taxonomy' and 'term' consistently, for all taxonomies, or
 we don't bother and encourage devs to use $wp_query->get_queried_object()
 to retrieve that information.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12659#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list