mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Move submit check into WP_Widget
git-svn-id: https://develop.svn.wordpress.org/trunk@10801 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -213,9 +213,13 @@ class WP_Widget {
|
||||
}
|
||||
}
|
||||
|
||||
foreach( (array) $_POST['widget-' . $this->id_base] as $number => $new_instance ) {
|
||||
foreach ( (array) $_POST['widget-' . $this->id_base] as $number => $new_instance ) {
|
||||
$new_instance = stripslashes_deep($new_instance);
|
||||
$this->_set($number);
|
||||
|
||||
if ( !isset($new_instance['submit']) )
|
||||
continue;
|
||||
|
||||
if ( isset($all_instances[$number]) )
|
||||
$instance = $this->update($new_instance, $all_instances[$number]);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user