Make WordPress Core


Ignore:
Timestamp:
05/22/2009 12:08:51 PM (15 years ago)
Author:
azaozz
Message:

Fix saving and deleting of widgets settings for no-js and for some non-standard widgets, run the actions from the widgets screen when saving with ajax, see #9511

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r11383 r11427  
    760760
    761761        if ( empty($instance) )
    762             $instance = array( 'number' => '__i__', 'title' => '', 'url' => '', 'items' => 10, 'error' => false, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0 );
    763         else
    764             $instance['number'] = $this->number;
     762            $instance = array( 'title' => '', 'url' => '', 'items' => 10, 'error' => false, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0 );
     763        $instance['number'] = $this->number;
    765764
    766765        wp_widget_rss_form( $instance );
Note: See TracChangeset for help on using the changeset viewer.