WPGlobus – Multilingual Everything! - Version 2.2.12

Version Description

  • Fixed: (Config) PHP warnings for clean install.
Download this release

Release Info

Developer tivnet
Plugin Icon 128x128 WPGlobus – Multilingual Everything!
Version 2.2.12
Comparing to
See all releases

Code changes from version 2.2.11 to 2.2.12

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-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}WPGlobus 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-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":"1.1.0","_api_tested_up_to":"4.9.8"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"3.5.0","_api_tested_up_to":"5.0.0"},"wpglobus-for-slider-revolution":{"title":"{:en}WPGlobus for Slider Revolution{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Slider Revolution{:}","_api_new_version":"1.6.0","_api_tested_up_to":"5.0.2"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.0.4"},"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":"1.0.0","_api_tested_up_to":"5.1"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.1.56","_api_tested_up_to":"5.1.1"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.2"},"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.2.0","_api_tested_up_to":"5.2"}}
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-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}WPGlobus 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-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":"1.1.0","_api_tested_up_to":"4.9.8"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"3.5.0","_api_tested_up_to":"5.0.0"},"wpglobus-for-slider-revolution":{"title":"{:en}WPGlobus for Slider Revolution{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Slider Revolution{:}","_api_new_version":"1.6.0","_api_tested_up_to":"5.0.2"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.0.4"},"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":"1.0.0","_api_tested_up_to":"5.1"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.2"},"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.2.0","_api_tested_up_to":"5.2"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.1.57","_api_tested_up_to":"5.2"}}
includes/class-wpglobus-config.php CHANGED
@@ -831,18 +831,24 @@ class WPGlobus_Config {
831
  );
832
 
833
  /** $wpglobus_option['post_type'] contains disabled post types. */
834
- $post_types_disabled = array_intersect_key($builder_default_post_types, $wpglobus_option['post_type']);
 
 
 
 
835
 
836
- foreach( $post_types_disabled as $_post_type=>$status ) {
837
- if ( array_key_exists($_post_type, $builder_default_post_types) ) {
838
- $builder_default_post_types[$_post_type] = false;
 
 
839
  }
840
  }
841
 
842
  if ( empty($builder_post_types) ) {
843
  $builder_post_types = $builder_default_post_types;
844
  } else {
845
- $builder_post_types= array_merge( $builder_default_post_types, $builder_post_types );
846
  }
847
 
848
  require_once dirname( __FILE__ ).'/builders/class-wpglobus-config-builder.php' ;
831
  );
832
 
833
  /** $wpglobus_option['post_type'] contains disabled post types. */
834
+ if ( empty( $wpglobus_option['post_type'] ) ) {
835
+ $post_types_disabled = array();
836
+ } else {
837
+ $post_types_disabled = array_intersect_key($builder_default_post_types, $wpglobus_option['post_type']);
838
+ }
839
 
840
+ if ( ! empty( $post_types_disabled ) ) {
841
+ foreach( $post_types_disabled as $_post_type=>$status ) {
842
+ if ( array_key_exists($_post_type, $builder_default_post_types) ) {
843
+ $builder_default_post_types[$_post_type] = false;
844
+ }
845
  }
846
  }
847
 
848
  if ( empty($builder_post_types) ) {
849
  $builder_post_types = $builder_default_post_types;
850
  } else {
851
+ $builder_post_types = array_merge( $builder_default_post_types, $builder_post_types );
852
  }
853
 
854
  require_once dirname( __FILE__ ).'/builders/class-wpglobus-config-builder.php' ;
languages/wpglobus-ru_RU.mo CHANGED
Binary file
languages/wpglobus-ru_RU.po CHANGED
@@ -1378,11 +1378,11 @@ msgstr "Разрешена"
1378
 
1379
  #: includes/options/class-wpglobus-options.php:1459
1380
  msgid "Builders support"
1381
- msgstr "Поддержка конструкторов страниц"
1382
 
1383
  #: includes/options/class-wpglobus-options.php:1511
1384
  msgid "Builder mode is enabled on these Post Types"
1385
- msgstr ""
1386
 
1387
  #: includes/options/class-wpglobus-options.php:1571
1388
  msgid "Old fashioned language switcher"
1378
 
1379
  #: includes/options/class-wpglobus-options.php:1459
1380
  msgid "Builders support"
1381
+ msgstr "Поддержка конструкторов страниц (Builders)"
1382
 
1383
  #: includes/options/class-wpglobus-options.php:1511
1384
  msgid "Builder mode is enabled on these Post Types"
1385
+ msgstr "Режим `Builder` активен для этих типов записей"
1386
 
1387
  #: includes/options/class-wpglobus-options.php:1571
1388
  msgid "Old fashioned language switcher"
readme.txt CHANGED
@@ -218,6 +218,10 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
218
 
219
  == Changelog ==
220
 
 
 
 
 
221
  = 2.2.11 =
222
 
223
  * Fixed: Default locale and flag for Taiwan.
218
 
219
  == Changelog ==
220
 
221
+ = 2.2.12 =
222
+
223
+ * Fixed: (Config) PHP warnings for clean install.
224
+
225
  = 2.2.11 =
226
 
227
  * Fixed: Default locale and flag for Taiwan.
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.2.11
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
  exit;
43
  }
44
 
45
- define( 'WPGLOBUS_VERSION', '2.2.11' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
 
48
  /**
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.2.12
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.2.12' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
 
48
  /**