From a8e7fa3e8ff4f8ee2ed9a29025e5b37bc4aa5352 Mon Sep 17 00:00:00 2001 From: ingoKrOffice <158591735+ingoKrOffice@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:46:24 +0100 Subject: [PATCH] fix URL for language Selection (#954) * fix URL for language Selection * update changelog * update to version 5.2.1 --------- Co-authored-by: andernath --- plugin.php | 3 ++- readme.txt | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin.php b/plugin.php index f81f740f8..48308cf3d 100644 --- a/plugin.php +++ b/plugin.php @@ -25,7 +25,7 @@ Author: onOffice GmbH Author URI: https://en.onoffice.com/ Description: Your connection to onOffice: This plugin enables you to have quick access to estates and forms – no additional sync with the software is needed. Consult support@onoffice.de for source code. -Version: 5.2 +Version: 5.2.1 License: AGPL 3+ License URI: https://www.gnu.org/licenses/agpl-3.0 Text Domain: onoffice-for-wp-websites @@ -305,6 +305,7 @@ function customFieldCallback( $pDI, $format, $limitEllipsis, $meta_key ) { $oldUrl = $pDI->get(Redirector::class)->getCurrentLink(); return $pAddressIdGuard->createAddressDetailLinkForSwitchLanguageWPML($url, $addressId, $pEstateDetailUrl, $oldUrl, $data['default_locale']); } + return $url; }, 10, 2); register_activation_hook(__FILE__, [Installer::class, 'install']); diff --git a/readme.txt b/readme.txt index 5607a28b6..67abc3221 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: real estate, onoffice Requires at least: 4.6 Tested up to: 6.6.1 Requires PHP: 7.4 -Stable tag: 5.2 +Stable tag: 5.2.1 License: AGPL 3.0 License URI: https://www.gnu.org/licenses/agpl-3.0.html @@ -76,6 +76,12 @@ Start editing inside the `onoffice-personalized` folder. == Changelog == += 5.2.1 (2024-11-05) = + +**Fixed** + +* Language switch for WPML + = 5.2 (2024-10-30) = **Added**