mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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
git-svn-id: https://develop.svn.wordpress.org/trunk@11427 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -759,9 +759,8 @@ class WP_Widget_RSS extends WP_Widget {
|
||||
function form($instance) {
|
||||
|
||||
if ( empty($instance) )
|
||||
$instance = array( 'number' => '__i__', 'title' => '', 'url' => '', 'items' => 10, 'error' => false, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0 );
|
||||
else
|
||||
$instance['number'] = $this->number;
|
||||
$instance = array( 'title' => '', 'url' => '', 'items' => 10, 'error' => false, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0 );
|
||||
$instance['number'] = $this->number;
|
||||
|
||||
wp_widget_rss_form( $instance );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user