bled ) { $old_setting = $this->sitepress->get_setting( WPML_ST_Post_Slug_Translation_Settings::KEY_IN_SITEPRESS_SETTINGS ); if ( array_key_exists( 'on', $old_setting ) ) { $enabled = (int) $old_setting['on']; } else { $enabled = 0; } update_option( WPML_ST_Slug_Translation_Settings::KEY_ENABLED_GLOBALLY, $enabled ); } } }