Changeset 10801 for trunk/wp-includes/default-widgets.php
- Timestamp:
- 03/17/2009 02:58:15 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/default-widgets.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-widgets.php
r10800 r10801 45 45 46 46 function update( $new_instance, $old_instance ) { 47 if ( !isset($new_instance['submit']) ) // user clicked cancel?48 return false;49 50 47 $instance = $old_instance; 51 48 $instance['title'] = strip_tags($new_instance['title']); … … 120 117 121 118 function update( $new_instance, $old_instance ) { 122 if( !isset($new_instance['submit']) ) // user clicked cancel?123 return false;124 125 119 $new_instance = (array) $new_instance; 126 120 $instance = array( 'images' => 0, 'name' => 0, 'description' => 0, 'rating' => 0); … … 213 207 214 208 function update( $new_instance, $old_instance ) { 215 if ( !isset($new_instance['submit']) ) // user clicked cancel?216 return false;217 218 209 $instance = $old_instance; 219 210 $new_instance = wp_parse_args( (array) $new_instance, array( 'title' => '', 'count' => 0, 'dropdown' => '') ); … … 276 267 277 268 function update( $new_instance, $old_instance ) { 278 if ( !isset($new_instance['submit']) ) // user clicked cancel?279 return false;280 281 269 $instance = $old_instance; 282 270 $instance['title'] = strip_tags($new_instance['title']); … … 319 307 320 308 function update( $new_instance, $old_instance ) { 321 if ( !isset($new_instance['submit']) ) // user clicked cancel?322 return false;323 324 309 $instance = $old_instance; 325 310 $instance['title'] = strip_tags($new_instance['title']);
Note: See TracChangeset
for help on using the changeset viewer.