[wp-trac] [WordPress Trac] #12719: Custom taxonomy with query_var set, gets taxonomy query_var appended anyway

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 27 03:34:21 UTC 2010


#12719: Custom taxonomy with query_var set, gets taxonomy query_var appended anyway
--------------------------+-------------------------------------------------
 Reporter:  Silkjaer      |       Owner:  dd32             
     Type:  defect (bug)  |      Status:  accepted         
 Priority:  normal        |   Milestone:  3.0              
Component:  Query         |     Version:  3.0              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------
Changes (by dd32):

  * keywords:  taxonomy, query_vars => reporter-feedback
  * component:  Canonical => Query


Comment:

 Can you just verify the bug you're seeing?

 Is WordPress -redirecting- you to the other URL you're mentioning? Or is
 this related to the Query Vars which are presented to WordPress?

 Given the URL: http://localhost/wordpress/?state=nsw&colour=red I'm seeing
 NSW Posts which are also Red.

 While WordPress is loading the page correctly, The Query vars do get
 messed up, For example:
 {{{
 array
   'state' => string 'nsw' (length=3)
   'taxonomy' => string 'colour' (length=6)
   'term' => string 'red' (length=3)
   'colour' => string 'red' (length=3)
 }}}

 The last added one is taking preference over the earlier ones.

 From the description I thought this was a canonical redirection, but i
 cant seem to see that, I'm setting back to Query pending duplication.

 Can you post up the register_taxonomy() calls which you're using to cause
 this? It might be dependent on a option you've got set.

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


More information about the wp-trac mailing list