Astra_Addon_Update::v_1_0_0_rc_7()

Update options of older version than 1.0.0-rc.7.


Description


Return

(void)


Source

File: classes/class-astra-addon-update.php

		public static function v_1_0_0_rc_7() {

			$astra_options = get_option( 'astra-settings', array() );

			if ( ! empty( $astra_options['footer-bg-color'] ) && ! empty( $astra_options['footer-bg-img'] ) ) {

				$astra_options['footer-bg-color-opc'] = ! empty( $astra_options['footer-bg-color-opc'] ) ? $astra_options['footer-bg-color-opc'] : '0.8';

				$astra_options['footer-bg-color'] = astra_hex_to_rgba( $astra_options['footer-bg-color'], $astra_options['footer-bg-color-opc'] );
			}

			if ( ! empty( $astra_options['footer-adv-bg-color'] ) && ! empty( $astra_options['footer-adv-bg-img'] ) ) {

				$astra_options['footer-adv-bg-color-opac'] = ! empty( $astra_options['footer-adv-bg-color-opac'] ) ? $astra_options['footer-adv-bg-color-opac'] : '0.8';
				$astra_options['footer-adv-bg-color']      = astra_hex_to_rgba( $astra_options['footer-adv-bg-color'], $astra_options['footer-adv-bg-color-opac'] );
			}

			update_option( 'astra-settings', $astra_options );
		}

Changelog

Changelog
Version Description
1.0.0-rc.7 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.