Astra_Addon_Update::v_1_2_0_beta_1()
Update options of older version than 1.2.0-beta.1.
Description
Footer Widget Spacing Top/Right/Bottom/Left updated for responsive devices. Merge menu backward compatibility.
Source
File: classes/class-astra-addon-update.php
public static function v_1_2_0_beta_1() { $options = array( 'footer-adv-area-padding' => array( 'top' => 70, 'right' => '', 'bottom' => 70, 'left' => '', ), ); $astra_options = get_option( 'astra-settings', array() ); if ( 0 < count( $astra_options ) ) { foreach ( $options as $key => $value ) { if ( array_key_exists( $key, $astra_options ) ) { $astra_options[ $key ] = array( 'desktop' => array( 'top' => $astra_options[ $key ]['top'], 'right' => $astra_options[ $key ]['right'], 'bottom' => $astra_options[ $key ]['bottom'], 'left' => $astra_options[ $key ]['left'], ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); } } } // Above Header Merge menu backward compatibility. if ( ! isset( $astra_options['above-header-merge-menu'] ) ) { $astra_options['above-header-merge-menu'] = true; } // Above Header Merge menu backward compatibility. if ( ! isset( $astra_options['below-header-merge-menu'] ) ) { $astra_options['below-header-merge-menu'] = true; } update_option( 'astra-settings', $astra_options ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.2.0-beta.1 | Introduced. |