Changeset 51789 for trunk/src/wp-includes/widgets/class-wp-widget-media.php
- Timestamp:
- 09/09/2021 08:12:58 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media.php
r50995 r51789 260 260 * 261 261 * @since 4.8.0 262 * @since 5.9.0 Renamed `$instance` to `$old_instance` to match parent class 263 * for PHP 8 named parameter support. 262 264 * 263 265 * @see WP_Widget::update() … … 266 268 * 267 269 * @param array $new_instance Values just sent to be saved. 268 * @param array $ instancePreviously saved values from database.270 * @param array $old_instance Previously saved values from database. 269 271 * @return array Updated safe values to be saved. 270 272 */ 271 public function update( $new_instance, $ instance ) {273 public function update( $new_instance, $old_instance ) { 272 274 273 275 $schema = $this->get_instance_schema(); … … 304 306 continue; 305 307 } 306 $ instance[ $field ] = $value;307 } 308 309 return $ instance;308 $old_instance[ $field ] = $value; 309 } 310 311 return $old_instance; 310 312 } 311 313
Note: See TracChangeset
for help on using the changeset viewer.