[wp-trac] [WordPress Trac] #20679: Widget with mutliple select doesn't work

WordPress Trac wp-trac at lists.automattic.com
Tue May 15 06:51:24 UTC 2012


#20679: Widget with mutliple select doesn't work
--------------------------+-----------------------------
 Reporter:  topweb        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  3.3.2
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 Widget with <select multiple="multiple"> doesn't work.
 To reproduce the bug you need to test the following code in a widget:

 {{{
 #!php

 public function update($new_instance, $old_instance) {
     print_r($new_instance);
     die();
 }

 function form($instance) { ?>
         <select multiple="multiple" name="<?php echo
 $this->get_field_name('options'); ?>">
                 <option value="1">
                 Option 1
                 </option>
                 <option value="2">
                 Option 2
                 </option>
                 </option>
         </select> <?php
 }
 }}}

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


More information about the wp-trac mailing list