Astra_Theme_Update::v_1_0_12()
Update options of older version than 1.0.12.
Description
Source
File: inc/theme-update/class-astra-theme-update.php
public static function v_1_0_12() {
$options = array(
'site-content-layout' => 'plain-container',
'single-page-content-layout' => 'plain-container',
'single-post-content-layout' => 'content-boxed-container',
'archive-post-content-layout' => 'content-boxed-container',
);
$astra_options = get_option( ASTRA_THEME_SETTINGS, array() );
foreach ( $options as $key => $value ) {
if ( ! isset( $astra_options[ $key ] ) ) {
$astra_options[ $key ] = $value;
}
}
update_option( ASTRA_THEME_SETTINGS, $astra_options );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.12 | Introduced. |