Astra_Theme_Update::v_1_5_2()

Add same font variant as font weight for body and heading.


Description


Return

(void)


Source

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

		public static function v_1_5_2() {
			$theme_options = get_option( 'astra-settings', array() );
			if ( isset( $theme_options['body-font-weight'] ) && is_numeric( $theme_options['body-font-weight'] ) ) {
				$theme_options['body-font-variant'] = $theme_options['body-font-weight'];
			}
			if ( isset( $theme_options['headings-font-weight'] ) && is_numeric( $theme_options['headings-font-weight'] ) ) {
				$theme_options['headings-font-variant'] = $theme_options['headings-font-weight'];
			}

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

User Contributed Notes

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