mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Separate widget form and update callbacks.
git-svn-id: https://develop.svn.wordpress.org/trunk@10798 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -216,6 +216,7 @@ class WP_Widget_Archives extends WP_Widget {
|
||||
return false;
|
||||
|
||||
$instance = $old_instance;
|
||||
$new_instance = wp_parse_args( (array) $new_instance, array( 'title' => '', 'count' => 0, 'dropdown' => '') );
|
||||
$instance['title'] = strip_tags($new_instance['title']);
|
||||
$instance['count'] = $new_instance['count'] ? 1 : 0;
|
||||
$instance['dropdown'] = $new_instance['dropdown'] ? 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user