WPGlobus – Multilingual Everything! - Version 2.2.26

Version Description

  • Fixed: (Core/Builders) Don't initialize the Builders class when initial attributes are empty.
  • Internal: (Builders/Block Editor) Changed the admin bar builder label to Block Editor.
Download this release

Release Info

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

Code changes from version 2.2.25 to 2.2.26

includes/builders/class-wpglobus-builders.php CHANGED
@@ -58,6 +58,7 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
58
  'supported_min_version' => '4.0.0',
59
  'const' => 'GUTENBERG_VERSION',
60
  'plugin_name' => 'Gutenberg',
 
61
  'plugin_uri' => 'https://github.com/WordPress/gutenberg',
62
  'path' => 'gutenberg/gutenberg.php',
63
  'stage' => 'production',
@@ -189,7 +190,14 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
189
  // if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
190
  //return false;
191
  // }
192
-
 
 
 
 
 
 
 
193
  /**
194
  * @since 2.2.24
195
  */
@@ -788,6 +796,8 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
788
 
789
  $attrs = self::get_attrs( $_attrs );
790
 
 
 
791
  return $attrs;
792
 
793
  }
58
  'supported_min_version' => '4.0.0',
59
  'const' => 'GUTENBERG_VERSION',
60
  'plugin_name' => 'Gutenberg',
61
+ 'admin_bar_builder_label' => '',
62
  'plugin_uri' => 'https://github.com/WordPress/gutenberg',
63
  'path' => 'gutenberg/gutenberg.php',
64
  'stage' => 'production',
190
  // if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
191
  //return false;
192
  // }
193
+
194
+ /**
195
+ * @since 2.2.26
196
+ */
197
+ if ( empty($init_attrs) ) {
198
+ return false;
199
+ }
200
+
201
  /**
202
  * @since 2.2.24
203
  */
796
 
797
  $attrs = self::get_attrs( $_attrs );
798
 
799
+ self::$add_on['gutenberg']['admin_bar_builder_label'] = 'Block Editor';
800
+
801
  return $attrs;
802
 
803
  }
languages/wpglobus.pot CHANGED
@@ -1,8 +1,8 @@
1
- # Copyright (C) 2019 WPGlobus 2.2.25
2
- # This file is distributed under the same license as the WPGlobus 2.2.25 package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPGlobus 2.2.25\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
1
+ # Copyright (C) 2019 WPGlobus 2.2.26
2
+ # This file is distributed under the same license as the WPGlobus 2.2.26 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPGlobus 2.2.26\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -218,6 +218,11 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
218
 
219
  == Changelog ==
220
 
 
 
 
 
 
221
  = 2.2.25 =
222
 
223
  * Fixed: (Vendor/Yoast) Don't start JS if support module was not defined.
218
 
219
  == Changelog ==
220
 
221
+ = 2.2.26 =
222
+
223
+ * Fixed: (Core/Builders) Don't initialize the Builders class when initial attributes are empty.
224
+ * Internal: (Builders/Block Editor) Changed the admin bar builder label to `Block Editor`.
225
+
226
  = 2.2.25 =
227
 
228
  * Fixed: (Vendor/Yoast) Don't start JS if support module was not defined.
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.25
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.25' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
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.26
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.2.26' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48