[wp-trac] [WordPress Trac] #16677: wp_dropdown_categories() shows the wrong name/id when $taxonomy arg is present

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 26 12:52:29 UTC 2011


#16677: wp_dropdown_categories() shows the wrong name/id when $taxonomy arg is
present
--------------------------+-----------------------------
 Reporter:  ramiy         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  3.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 when using '''wp_dropdown_categories()''' the code result is:

 {{{
 <select name='cat' id='cat' class='postform' >
 <option class="level-0" value="1">item 1</option>
 <option class="level-0" value="2">item 2</option>
 <option class="level-0" value="3">item 3</option>
 </select>
 }}}

 The '''name='cat' id='cat''''.

 ----

 When using '''wp_dropdown_categories( array( 'taxonomy' => 'channel'  )
 )''' the code result is:

 {{{
 <select name='cat' id='cat' class='postform' >
 <option class="level-0" value="1">term item 1</option>
 <option class="level-0" value="2">term item 2</option>
 <option class="level-0" value="3">term item 3</option>
 </select>
 }}}

 The '''name''' and the '''id''' did not changed to '''channel'''.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16677>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list