Astra_Theme_Update::v_1_0_5()
Update options of older version than 1.0.5.
Description
Source
File: inc/theme-update/class-astra-theme-update.php
public static function v_1_0_5() {
$astra_old_options = get_option( 'ast-settings', array() );
$astra_new_options = get_option( ASTRA_THEME_SETTINGS, array() );
// Merge old customizer options in new option.
$astra_options = wp_parse_args( $astra_new_options, $astra_old_options );
// Update option.
update_option( ASTRA_THEME_SETTINGS, $astra_options );
// Delete old option.
delete_option( 'ast-settings' );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.5 | Introduced. |