Skip Navigation

Resolved

Overview of the issue

When you are translating the admin strings(theme settings strings) in Astra theme, and you visit the translation, the original value of the string can be overwritten with the value of the translation.

Workaround

We have contacted the Astra theme developers until then you can use this workaround if you are sure about what you are doing and have a full backup of your site. Go to: wp-content/themes/astra/inc/core/common-functions.php Change the code from:

function astra_update_option( $option, $value ) {

		do_action( "astra_before_update_option_{$option}", $value, $option );

		// Get all customizer options.
		$theme_options = get_option( ASTRA_THEME_SETTINGS );

		// Update value in options array.
		$theme_options[ $option ] = $value;

		update_option( ASTRA_THEME_SETTINGS, $theme_options );

		do_action( "astra_after_update_option_{$option}", $value, $option );
	}

To:

function astra_update_option( $option, $value ) {

		do_action( "astra_before_update_option_{$option}", $value, $option );

		$theme_options = maybe_unserialize(apply_filters( 'wpml_unfiltered_admin_string', get_option( ASTRA_THEME_SETTINGS ), ASTRA_THEME_SETTINGS ));

		// Update value in options array.
		$theme_options[ $option ] = $value;

		update_option( ASTRA_THEME_SETTINGS, $theme_options );

		do_action( "astra_after_update_option_{$option}", $value, $option );
	}

Next steps to resolve this issue

We’ve already reached out to the Astra team to ask them for a permanent fix, but we’ve yet to receive an update for when this will be resolved. If can only help move things along if you head over to Astra’s support forum and let them know that a solution to this issue is important to you too.