WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20679, comment 3


Ignore:
Timestamp:
05/15/12 08:48:34 (3 years ago)
Author:
topweb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20679, comment 3

    initial v1  
    22 
    33Post parameters when saving are: 
    4  
     4{{{ 
    55action  save-widget 
    66add_new  
     
    1515widget-width    250 
    1616widget_number   2 
    17  
     17}}} 
    1818As you can see categoriesIds should be an array from the multiple select. 
    1919 
    2020I am expecting to get from the update function an array containing both submitted values: 
    21  
     21{{{ 
    2222public function update($new_instance, $old_instance) { 
    2323     print_r($new_instance);  
    2424     die(); 
    2525} 
    26  
     26}}} 
    2727And it actually returns this: 
    2828Array ( [categoriesIds] => 8 )