Version Description
- (Core/Filters) Update
widget_display_callback
filter.
Download this release
Release Info
Developer | tivnet |
Plugin | WPGlobus – Multilingual Everything! |
Version | 2.8.5 |
Comparing to | |
See all releases |
Code changes from version 2.8.4 to 2.8.5
- data/wpglobus-product-info.json +1 -1
- includes/class-wpglobus-filters.php +4 -2
- readme.txt +3 -13
- wpglobus.php +2 -2
data/wpglobus-product-info.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-multi-currency":{"title":"{:en}Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.2.0","_api_tested_up_to":"5.6"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.5"},"wpglobus-for-ultimate-member":{"title":"{:en}WPGlobus for Ultimate Member{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Ultimate Member{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.6"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"2.0.0","_api_tested_up_to":"5.6"},"wpglobus-for-bridge-theme":{"title":"{:en}WPGlobus for the \"Bridge\" theme{:}{:ru}WPGlobus \u0434\u043b\u044f \u0442\u0435\u043c\u044b Bridge{:}","_api_new_version":"2.4.0","_api_tested_up_to":"5.5"},"wpglobus-language-widgets":{"title":"{:en}WPGlobus Language Widgets{:}{:ru}\u042f\u0437\u044b\u043a\u0438 WPGlobus \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.7"},"wpglobus-multilingual-popups":{"title":"{:en}WPGlobus Multilingual Popups{:}{:ru}WPGlobus Multilingual Popups{:}","_api_new_version":"1.4.0","_api_tested_up_to":"5.7"},"wpglobus-
|
1 |
+
{"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-multi-currency":{"title":"{:en}Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.2.0","_api_tested_up_to":"5.6"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.5"},"wpglobus-for-ultimate-member":{"title":"{:en}WPGlobus for Ultimate Member{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Ultimate Member{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.6"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"2.0.0","_api_tested_up_to":"5.6"},"wpglobus-for-bridge-theme":{"title":"{:en}WPGlobus for the \"Bridge\" theme{:}{:ru}WPGlobus \u0434\u043b\u044f \u0442\u0435\u043c\u044b Bridge{:}","_api_new_version":"2.4.0","_api_tested_up_to":"5.5"},"wpglobus-language-widgets":{"title":"{:en}WPGlobus Language Widgets{:}{:ru}\u042f\u0437\u044b\u043a\u0438 WPGlobus \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.7"},"wpglobus-multilingual-popups":{"title":"{:en}WPGlobus Multilingual Popups{:}{:ru}WPGlobus Multilingual Popups{:}","_api_new_version":"1.4.0","_api_tested_up_to":"5.7"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.7.4","_api_tested_up_to":"5.8"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"5.8.5","_api_tested_up_to":"5.8"},"wpglobus-multilingual-notices":{"title":"{:en}WPGlobus Multilingual Notices{:}{:ru}WPGlobus - \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f{:}","_api_new_version":"2.9.2","_api_tested_up_to":"5.8"}}
|
includes/class-wpglobus-filters.php
CHANGED
@@ -758,6 +758,8 @@ class WPGlobus_Filters {
|
|
758 |
*
|
759 |
* @since 1.0.6
|
760 |
* @since 2.4.10 Prevent handling of incorrect widget instance's settings.
|
|
|
|
|
761 |
*
|
762 |
* @param string[] $instance
|
763 |
*
|
@@ -776,9 +778,9 @@ class WPGlobus_Filters {
|
|
776 |
foreach ( $instance as &$widget_setting ) {
|
777 |
|
778 |
/** @noinspection ReferenceMismatchInspection */
|
779 |
-
if ( ! empty( $widget_setting ) && is_string( $widget_setting ) ) {
|
780 |
$widget_setting =
|
781 |
-
WPGlobus_Core::
|
782 |
}
|
783 |
}
|
784 |
|
758 |
*
|
759 |
* @since 1.0.6
|
760 |
* @since 2.4.10 Prevent handling of incorrect widget instance's settings.
|
761 |
+
* @since 2.8.5 Added checking for translations in $widget_setting.
|
762 |
+
* Using `extract_text` instead of `text_filter`.
|
763 |
*
|
764 |
* @param string[] $instance
|
765 |
*
|
778 |
foreach ( $instance as &$widget_setting ) {
|
779 |
|
780 |
/** @noinspection ReferenceMismatchInspection */
|
781 |
+
if ( ! empty( $widget_setting ) && is_string( $widget_setting ) && WPGlobus_Core::has_translations( $widget_setting ) ) {
|
782 |
$widget_setting =
|
783 |
+
WPGlobus_Core::extract_text( $widget_setting, WPGlobus::Config()->language );
|
784 |
}
|
785 |
}
|
786 |
|
readme.txt
CHANGED
@@ -220,6 +220,9 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
|
|
220 |
|
221 |
== Changelog ==
|
222 |
|
|
|
|
|
|
|
223 |
= 2.8.4 =
|
224 |
* (Core/Widget class) Added `widget_title` filter.
|
225 |
* (Vendor/Yoast) Fixed PHP Notice: `Undefined index: _yoast_wpseo_title`.
|
@@ -234,19 +237,6 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
|
|
234 |
= 2.8.2 =
|
235 |
* (Core/JS) Set new value using `val` function instead of `attr` for menu item labels and titles.
|
236 |
|
237 |
-
= 2.8.1 =
|
238 |
-
* (Vendor/Yoast) Fixed PHP Notice: `Undefined index: description`.
|
239 |
-
* (Vendor/Yoast) Fixed an issue with `og:title` meta.
|
240 |
-
|
241 |
-
= 2.8.0 =
|
242 |
-
* (Compatibility) Tested up to WordPress 5.8
|
243 |
-
* (Core/Options) Added `use_widgets_block_editor` option.
|
244 |
-
* (Core/Config) Added `use_widgets_block_editor` option.
|
245 |
-
* (Core/Controller) Added `use_widgets_block_editor` filter.
|
246 |
-
* (Core) Class `WPGlobus_Admin_Gutenberg` is deprecated.
|
247 |
-
* (Core/JS) Checking existing WPGlobusWidgets before init.
|
248 |
-
* (Core/JS) Don't run with WP 5.8 when the block editor enables for managing widgets.
|
249 |
-
|
250 |
== Demo Sites ==
|
251 |
|
252 |
* [WPGlobus.com](https://wpglobus.com/):
|
220 |
|
221 |
== Changelog ==
|
222 |
|
223 |
+
= 2.8.5 =
|
224 |
+
* (Core/Filters) Update `widget_display_callback` filter.
|
225 |
+
|
226 |
= 2.8.4 =
|
227 |
* (Core/Widget class) Added `widget_title` filter.
|
228 |
* (Vendor/Yoast) Fixed PHP Notice: `Undefined index: _yoast_wpseo_title`.
|
237 |
= 2.8.2 =
|
238 |
* (Core/JS) Set new value using `val` function instead of `attr` for menu item labels and titles.
|
239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
== Demo Sites ==
|
241 |
|
242 |
* [WPGlobus.com](https://wpglobus.com/):
|
wpglobus.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
|
16 |
* Text Domain: wpglobus
|
17 |
* Domain Path: /languages/
|
18 |
-
* Version: 2.8.
|
19 |
* Author: WPGlobus
|
20 |
* Author URI: https://wpglobus.com/
|
21 |
* Network: false
|
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
44 |
exit;
|
45 |
}
|
46 |
|
47 |
-
define( 'WPGLOBUS_VERSION', '2.8.
|
48 |
define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
49 |
define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
|
50 |
|
15 |
* Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
|
16 |
* Text Domain: wpglobus
|
17 |
* Domain Path: /languages/
|
18 |
+
* Version: 2.8.5
|
19 |
* Author: WPGlobus
|
20 |
* Author URI: https://wpglobus.com/
|
21 |
* Network: false
|
44 |
exit;
|
45 |
}
|
46 |
|
47 |
+
define( 'WPGLOBUS_VERSION', '2.8.5' );
|
48 |
define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
49 |
define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
|
50 |
|