Skip to content

Commit

Permalink
fix URL for language Selection (#954)
Browse files Browse the repository at this point in the history
* fix URL for language Selection

* update changelog

* update to version 5.2.1

---------

Co-authored-by: andernath <chibineko@gmail.com>
  • Loading branch information
ingoKrOffice and andernath authored Nov 5, 2024
1 parent 8c20744 commit a8e7fa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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']);
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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**
Expand Down

0 comments on commit a8e7fa3

Please sign in to comment.