Make WordPress Core

Ticket #24733: 24733.diff

File 24733.diff, 768 bytes (added by OriginalEXE, 12 years ago)
  • src/wp-includes/widgets.php

     
    183183                }
    184184        }
    185185
    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         */
    188193        function update_callback( $widget_args = 1 ) {
    189194                global $wp_registered_widgets;
    190195
    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 ) );
    195196                $all_instances = $this->get_settings();
    196197
    197198                // We need to update the data