Ticket #24733: 24733.diff
| File 24733.diff, 768 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/widgets.php
183 183 } 184 184 } 185 185 186 /** Deal with changed settings. 187 * Do NOT over-ride this function. */ 186 /** 187 * Deal with changed settings. 188 * 189 * Do NOT over-ride this function. 190 * 191 * @param mixed $widget_args Never used 192 */ 188 193 function update_callback( $widget_args = 1 ) { 189 194 global $wp_registered_widgets; 190 195 191 if ( is_numeric($widget_args) )192 $widget_args = array( 'number' => $widget_args );193 194 $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) );195 196 $all_instances = $this->get_settings(); 196 197 197 198 // We need to update the data