Make WordPress Core


Ignore:
Timestamp:
03/17/2009 12:59:42 AM (16 years ago)
Author:
ryan
Message:

Separate widget form and update callbacks.

File:
1 edited

Legend:

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

    r10797 r10798  
    217217
    218218        $instance = $old_instance;
     219        $new_instance = wp_parse_args( (array) $new_instance, array( 'title' => '', 'count' => 0, 'dropdown' => '') );
    219220        $instance['title'] = strip_tags($new_instance['title']);
    220221        $instance['count'] = $new_instance['count'] ? 1 : 0;
Note: See TracChangeset for help on using the changeset viewer.