Astra_Theme_Update::v_1_4_0_beta_3()

Mobile Header – Border new param introduced for Top, Right, Bottom and left border.


Description

Update options of older version than 1.4.0-beta.3.


Source

File: inc/theme-update/class-astra-theme-update.php

		public static function v_1_4_0_beta_3() {

			$theme_options     = get_option( 'astra-settings' );
			$mobile_logo_width = astra_get_option( 'mobile-header-logo-width' );

			if ( '' != $mobile_logo_width ) {
				$theme_options['ast-header-responsive-logo-width']['tablet'] = $mobile_logo_width;
			}

			$mobile_logo = ( isset( $theme_options['mobile-header-logo'] ) && '' !== $theme_options['mobile-header-logo'] ) ? $theme_options['mobile-header-logo'] : false;

			if ( '' != $mobile_logo ) {
				$theme_options['inherit-sticky-logo'] = false;
			}

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

Changelog

Changelog
Version Description
1.4.0-beta.3 Introduced.

User Contributed Notes

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