Changeset 54112 for trunk/src/wp-includes/class-wp-widget.php
- Timestamp:
- 09/09/2022 02:17:33 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-widget.php
r52173 r54112 613 613 614 614 if ( false === $settings ) { 615 $settings = array(); 615 616 if ( isset( $this->alt_option_name ) ) { 616 $settings = get_option( $this->alt_option_name ); 617 } else { 618 // Save an option so it can be autoloaded next time. 619 $this->save_settings( array() ); 620 } 617 // Get settings from alternative (legacy) option. 618 $settings = get_option( $this->alt_option_name, array() ); 619 620 // Delete the alternative (legacy) option as the new option will be created using `$this->option_name`. 621 delete_option( $this->alt_option_name ); 622 } 623 // Save an option so it can be autoloaded next time. 624 $this->save_settings( $settings ); 621 625 } 622 626
Note: See TracChangeset
for help on using the changeset viewer.