WPGlobus – Multilingual Everything! - Version 2.1.6

Version Description

  • FIXED:
    • Builders/Gutenberg: don't show our metabox when editing post types where WPGlobus is disabled.
  • INTERNAL:
    • Core/Builders: use the $_POST['post_type'] value to define post type on the post.php page (WordPress 5).
    • Core/Builders: added the $post_type parameter to the get_3rd_party_status_for_gutenberg() function.
    • Builders/WooCommerce: revised get_3rd_party_status_for_gutenberg() algorithm when WooCommerce is active.
Download this release

Release Info

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

Code changes from version 2.1.5 to 2.1.6

includes/builders/class-wpglobus-builders.php CHANGED
@@ -38,11 +38,11 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
38
  }
39
 
40
  global $wp_version;
41
-
42
  self::$add_on['gutenberg'] = array(
43
  'id' => 'gutenberg',
44
  'role' => 'builder',
45
- 'admin_bar_label' => version_compare( $wp_version, '4.9.99', '>' ) ? 'Core' : 'Builder',
46
  'supported_min_version' => '4.0.0',
47
  'const' => 'GUTENBERG_VERSION',
48
  'plugin_name' => 'Gutenberg',
@@ -738,10 +738,19 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
738
  $load_gutenberg = true;
739
 
740
  $post_type = '';
741
- if ( ! empty( $_GET['post'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
 
 
 
 
 
 
 
 
 
742
  $post_type = self::get_post_type( $_GET['post'] ); // phpcs:ignore WordPress.CSRF.NonceVerification
743
  }
744
-
745
  /**
746
  * @todo don't check post type @since 2.1.2
747
  */
@@ -749,7 +758,7 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
749
  // $load_gutenberg = false;
750
  // }
751
 
752
- $load_gutenberg = self::get_3rd_party_status_for_gutenberg( $load_gutenberg );
753
 
754
  }
755
 
@@ -912,27 +921,38 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
912
  /**
913
  * @since 1.9.30
914
  *
915
- * @param bool $load_gutenberg
 
916
  *
917
  * @return bool
918
  */
919
- protected static function get_3rd_party_status_for_gutenberg( $load_gutenberg ) {
920
 
921
  if ( defined( 'WC_PLUGIN_FILE' ) ) {
922
  /**
923
- * Woocommerce.
924
  */
925
- $post_type = '';
926
- if ( ! empty( $_GET['post'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
927
- $post_type = self::get_post_type( $_GET['post'] ); // phpcs:ignore WordPress.CSRF.NonceVerification
928
- }
929
-
930
- if ( empty( $post_type ) && ! empty( $_GET['post_type'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
931
- $post_type = $_GET['post_type']; // phpcs:ignore WordPress.CSRF.NonceVerification
932
- }
933
-
934
  if ( 'product' === $post_type ) {
 
935
  $load_gutenberg = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
936
  }
937
  }
938
 
38
  }
39
 
40
  global $wp_version;
41
+
42
  self::$add_on['gutenberg'] = array(
43
  'id' => 'gutenberg',
44
  'role' => 'builder',
45
+ 'admin_bar_label' => version_compare( $wp_version, '4.9.99', '>' ) ? 'Core' : 'Builder',
46
  'supported_min_version' => '4.0.0',
47
  'const' => 'GUTENBERG_VERSION',
48
  'plugin_name' => 'Gutenberg',
738
  $load_gutenberg = true;
739
 
740
  $post_type = '';
741
+ /**
742
+ * Check out $_POST['post_type'] to define post type.
743
+ *
744
+ * @since 2.1.6
745
+ */
746
+ if ( ! empty( $_POST['post_type'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
747
+ $post_type = $_POST['post_type']; // phpcs:ignore WordPress.CSRF.NonceVerification
748
+ }
749
+
750
+ if ( empty( $post_type ) && ! empty( $_GET['post'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
751
  $post_type = self::get_post_type( $_GET['post'] ); // phpcs:ignore WordPress.CSRF.NonceVerification
752
  }
753
+
754
  /**
755
  * @todo don't check post type @since 2.1.2
756
  */
758
  // $load_gutenberg = false;
759
  // }
760
 
761
+ $load_gutenberg = self::get_3rd_party_status_for_gutenberg( $load_gutenberg, $post_type );
762
 
763
  }
764
 
921
  /**
922
  * @since 1.9.30
923
  *
924
+ * @param bool $load_gutenberg
925
+ * @param string $post_type @since 2.1.6
926
  *
927
  * @return bool
928
  */
929
+ protected static function get_3rd_party_status_for_gutenberg( $load_gutenberg, $post_type = '' ) {
930
 
931
  if ( defined( 'WC_PLUGIN_FILE' ) ) {
932
  /**
933
+ * WooCommerce.
934
  */
 
 
 
 
 
 
 
 
 
935
  if ( 'product' === $post_type ) {
936
+
937
  $load_gutenberg = false;
938
+
939
+ } elseif ( '' === $post_type ) {
940
+
941
+ if ( ! empty( $_POST['post_type'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
942
+ $post_type = $_POST['post_type']; // phpcs:ignore WordPress.CSRF.NonceVerification
943
+ }
944
+
945
+ if ( empty( $post_type ) && ! empty( $_GET['post'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
946
+ $post_type = self::get_post_type( $_GET['post'] ); // phpcs:ignore WordPress.CSRF.NonceVerification
947
+ }
948
+
949
+ if ( empty( $post_type ) && ! empty( $_GET['post_type'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification
950
+ $post_type = $_GET['post_type']; // phpcs:ignore WordPress.CSRF.NonceVerification
951
+ }
952
+
953
+ if ( 'product' === $post_type ) {
954
+ $load_gutenberg = false;
955
+ }
956
  }
957
  }
958
 
includes/builders/gutenberg/class-wpglobus-gutenberg.php CHANGED
@@ -123,7 +123,7 @@ class WPGlobus_Gutenberg extends WPGlobus_Builder {
123
  data-language="<?php echo esc_attr( $this->language ); ?>">
124
  <img <?php echo $_height . $_width; // WPCS: XSS ok. ?>
125
  <?php echo $_flag_style; // WPCS: XSS ok. ?>
126
- src="<?php echo esc_url( $_flag_img ); ?>"/>
127
  </a>
128
  <a style="text-decoration:none;cursor:text;" onclick="return false;"
129
  href="#" class="wpglobus-gutenberg-selector wpglobus-gutenberg-selector-column-2"
@@ -156,7 +156,7 @@ class WPGlobus_Gutenberg extends WPGlobus_Builder {
156
  data-language="<?php echo esc_attr( $this->language ); ?>">
157
  <img <?php echo $_height . $_width; // WPCS: XSS ok. ?>
158
  <?php echo $_flag_style; // WPCS: XSS ok. ?>
159
- src="<?php echo $_flag_img; // WPCS: XSS ok. ?>"/>
160
  </a>
161
  <a style="text-decoration: none;"
162
  href="<?php echo esc_url( str_replace( '{{language}}', $this->language, $url ) ); ?>"
@@ -175,7 +175,7 @@ class WPGlobus_Gutenberg extends WPGlobus_Builder {
175
  * @param WP_Post $post The current post.
176
  */
177
  echo esc_html(
178
- // phpcs:ignore WordPress.NamingConventions
179
  apply_filters(
180
  'wpglobus_gutenberg_selector_text',
181
  WPGlobus::Config()->en_language_name[ $this->language ],
@@ -199,7 +199,7 @@ class WPGlobus_Gutenberg extends WPGlobus_Builder {
199
  style="text-align:left;cursor:pointer;border-bottom:1px solid #ddd;margin:0;height:25px;padding:5px 0 5px 5px;"
200
  data-language="<?php echo esc_attr( $lang ); ?>">
201
  <a href="<?php echo esc_url( str_replace( '{{language}}', $lang, $url ) ); ?>">
202
- <img src="<?php echo esc_url( WPGlobus::Config()->flags_url . WPGlobus::Config()->flag[ $lang ] ); ?>"/>&nbsp;<?php echo esc_html( WPGlobus::Config()->en_language_name[ $lang ] ); ?>
203
  </a>
204
  </li>
205
  <?php endforeach; ?>
@@ -336,6 +336,13 @@ class WPGlobus_Gutenberg extends WPGlobus_Builder {
336
  * Callback for 'add_meta_boxes'.
337
  */
338
  public function on__add_meta_box() {
 
 
 
 
 
 
 
339
  add_meta_box( 'wpglobus', __( 'WPGlobus', 'wpglobus' ), array(
340
  $this,
341
  'callback__meta_box',
123
  data-language="<?php echo esc_attr( $this->language ); ?>">
124
  <img <?php echo $_height . $_width; // WPCS: XSS ok. ?>
125
  <?php echo $_flag_style; // WPCS: XSS ok. ?>
126
+ src="<?php echo esc_url( $_flag_img ); ?>" alt=""/>
127
  </a>
128
  <a style="text-decoration:none;cursor:text;" onclick="return false;"
129
  href="#" class="wpglobus-gutenberg-selector wpglobus-gutenberg-selector-column-2"
156
  data-language="<?php echo esc_attr( $this->language ); ?>">
157
  <img <?php echo $_height . $_width; // WPCS: XSS ok. ?>
158
  <?php echo $_flag_style; // WPCS: XSS ok. ?>
159
+ src="<?php echo $_flag_img; // WPCS: XSS ok. ?>" alt=""/>
160
  </a>
161
  <a style="text-decoration: none;"
162
  href="<?php echo esc_url( str_replace( '{{language}}', $this->language, $url ) ); ?>"
175
  * @param WP_Post $post The current post.
176
  */
177
  echo esc_html(
178
+ // phpcs:ignore WordPress.NamingConventions
179
  apply_filters(
180
  'wpglobus_gutenberg_selector_text',
181
  WPGlobus::Config()->en_language_name[ $this->language ],
199
  style="text-align:left;cursor:pointer;border-bottom:1px solid #ddd;margin:0;height:25px;padding:5px 0 5px 5px;"
200
  data-language="<?php echo esc_attr( $lang ); ?>">
201
  <a href="<?php echo esc_url( str_replace( '{{language}}', $lang, $url ) ); ?>">
202
+ <img src="<?php echo esc_url( WPGlobus::Config()->flags_url . WPGlobus::Config()->flag[ $lang ] ); ?>" alt=""/>&nbsp;<?php echo esc_html( WPGlobus::Config()->en_language_name[ $lang ] ); ?>
203
  </a>
204
  </li>
205
  <?php endforeach; ?>
336
  * Callback for 'add_meta_boxes'.
337
  */
338
  public function on__add_meta_box() {
339
+
340
+ global $post;
341
+
342
+ if ( in_array( $post->post_type, WPGlobus::Config()->disabled_entities, true ) ) {
343
+ return;
344
+ }
345
+
346
  add_meta_box( 'wpglobus', __( 'WPGlobus', 'wpglobus' ), array(
347
  $this,
348
  'callback__meta_box',
languages/wpglobus-ar.po CHANGED
@@ -288,7 +288,7 @@ msgid "Save &amp; Reload"
288
  msgstr ""
289
 
290
  #: includes/admin/class-wpglobus-customize-options.php:546,
291
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
292
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
293
  msgid "WPGlobus"
294
  msgstr "WPGlobus"
288
  msgstr ""
289
 
290
  #: includes/admin/class-wpglobus-customize-options.php:546,
291
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
292
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
293
  msgid "WPGlobus"
294
  msgstr "WPGlobus"
languages/wpglobus-be.po CHANGED
@@ -313,7 +313,7 @@ msgid "Save &amp; Reload"
313
  msgstr "Сохранить и перезагрузить"
314
 
315
  #: includes/admin/class-wpglobus-customize-options.php:546,
316
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
317
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
318
  msgid "WPGlobus"
319
  msgstr "WPGlobus"
313
  msgstr "Сохранить и перезагрузить"
314
 
315
  #: includes/admin/class-wpglobus-customize-options.php:546,
316
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
317
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
318
  msgid "WPGlobus"
319
  msgstr "WPGlobus"
languages/wpglobus-bg_BG.po CHANGED
@@ -264,7 +264,7 @@ msgid "Save &amp; Reload"
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
languages/wpglobus-de_CH.po CHANGED
@@ -284,7 +284,7 @@ msgid "Save &amp; Reload"
284
  msgstr ""
285
 
286
  #: includes/admin/class-wpglobus-customize-options.php:546,
287
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
288
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
289
  msgid "WPGlobus"
290
  msgstr "WPGlobus"
284
  msgstr ""
285
 
286
  #: includes/admin/class-wpglobus-customize-options.php:546,
287
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
288
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
289
  msgid "WPGlobus"
290
  msgstr "WPGlobus"
languages/wpglobus-de_DE.po CHANGED
@@ -283,7 +283,7 @@ msgid "Save &amp; Reload"
283
  msgstr ""
284
 
285
  #: includes/admin/class-wpglobus-customize-options.php:546,
286
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
287
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
288
  msgid "WPGlobus"
289
  msgstr "WPGlobus"
283
  msgstr ""
284
 
285
  #: includes/admin/class-wpglobus-customize-options.php:546,
286
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
287
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
288
  msgid "WPGlobus"
289
  msgstr "WPGlobus"
languages/wpglobus-el.po CHANGED
@@ -265,7 +265,7 @@ msgid "Save &amp; Reload"
265
  msgstr ""
266
 
267
  #: includes/admin/class-wpglobus-customize-options.php:546,
268
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
269
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
270
  msgid "WPGlobus"
271
  msgstr "WPGlobus"
265
  msgstr ""
266
 
267
  #: includes/admin/class-wpglobus-customize-options.php:546,
268
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
269
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
270
  msgid "WPGlobus"
271
  msgstr "WPGlobus"
languages/wpglobus-en_AU.po CHANGED
@@ -310,7 +310,7 @@ msgid "Save &amp; Reload"
310
  msgstr "Save &amp; Reload"
311
 
312
  #: includes/admin/class-wpglobus-customize-options.php:546,
313
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
314
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
315
  msgid "WPGlobus"
316
  msgstr "WPGlobus"
310
  msgstr "Save &amp; Reload"
311
 
312
  #: includes/admin/class-wpglobus-customize-options.php:546,
313
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
314
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
315
  msgid "WPGlobus"
316
  msgstr "WPGlobus"
languages/wpglobus-en_CA.po CHANGED
@@ -309,7 +309,7 @@ msgid "Save &amp; Reload"
309
  msgstr "Save &amp; Reload"
310
 
311
  #: includes/admin/class-wpglobus-customize-options.php:546,
312
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
313
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
314
  msgid "WPGlobus"
315
  msgstr "WPGlobus"
309
  msgstr "Save &amp; Reload"
310
 
311
  #: includes/admin/class-wpglobus-customize-options.php:546,
312
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
313
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
314
  msgid "WPGlobus"
315
  msgstr "WPGlobus"
languages/wpglobus-en_GB.po CHANGED
@@ -310,7 +310,7 @@ msgid "Save &amp; Reload"
310
  msgstr "Save &amp; Reload"
311
 
312
  #: includes/admin/class-wpglobus-customize-options.php:546,
313
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
314
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
315
  msgid "WPGlobus"
316
  msgstr "WPGlobus"
310
  msgstr "Save &amp; Reload"
311
 
312
  #: includes/admin/class-wpglobus-customize-options.php:546,
313
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
314
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
315
  msgid "WPGlobus"
316
  msgstr "WPGlobus"
languages/wpglobus-en_NZ.po CHANGED
@@ -309,7 +309,7 @@ msgid "Save &amp; Reload"
309
  msgstr "Save &amp; Reload"
310
 
311
  #: includes/admin/class-wpglobus-customize-options.php:546,
312
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
313
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
314
  msgid "WPGlobus"
315
  msgstr "WPGlobus"
309
  msgstr "Save &amp; Reload"
310
 
311
  #: includes/admin/class-wpglobus-customize-options.php:546,
312
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
313
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
314
  msgid "WPGlobus"
315
  msgstr "WPGlobus"
languages/wpglobus-en_US.po CHANGED
@@ -308,7 +308,7 @@ msgid "Save &amp; Reload"
308
  msgstr "Save &amp; Reload"
309
 
310
  #: includes/admin/class-wpglobus-customize-options.php:546,
311
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
312
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
313
  msgid "WPGlobus"
314
  msgstr "WPGlobus"
308
  msgstr "Save &amp; Reload"
309
 
310
  #: includes/admin/class-wpglobus-customize-options.php:546,
311
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
312
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
313
  msgid "WPGlobus"
314
  msgstr "WPGlobus"
languages/wpglobus-en_ZA.po CHANGED
@@ -309,7 +309,7 @@ msgid "Save &amp; Reload"
309
  msgstr "Save &amp; Reload"
310
 
311
  #: includes/admin/class-wpglobus-customize-options.php:546,
312
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
313
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
314
  msgid "WPGlobus"
315
  msgstr "WPGlobus"
309
  msgstr "Save &amp; Reload"
310
 
311
  #: includes/admin/class-wpglobus-customize-options.php:546,
312
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
313
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
314
  msgid "WPGlobus"
315
  msgstr "WPGlobus"
languages/wpglobus-es_AR.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_CL.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_CO.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_CR.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_ES.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_GT.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_MX.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_PE.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_PR.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-es_VE.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr ""
languages/wpglobus-et.po CHANGED
@@ -265,7 +265,7 @@ msgid "Save &amp; Reload"
265
  msgstr "Salvesta ja laadi uuesti"
266
 
267
  #: includes/admin/class-wpglobus-customize-options.php:546,
268
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
269
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
270
  msgid "WPGlobus"
271
  msgstr "WPGlobus"
265
  msgstr "Salvesta ja laadi uuesti"
266
 
267
  #: includes/admin/class-wpglobus-customize-options.php:546,
268
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
269
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
270
  msgid "WPGlobus"
271
  msgstr "WPGlobus"
languages/wpglobus-fr_BE.po CHANGED
@@ -321,7 +321,7 @@ msgid "Save &amp; Reload"
321
  msgstr "Enregistrer & recharger"
322
 
323
  #: includes/admin/class-wpglobus-customize-options.php:546,
324
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
325
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
326
  msgid "WPGlobus"
327
  msgstr "WPGlobus"
321
  msgstr "Enregistrer & recharger"
322
 
323
  #: includes/admin/class-wpglobus-customize-options.php:546,
324
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
325
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
326
  msgid "WPGlobus"
327
  msgstr "WPGlobus"
languages/wpglobus-fr_CA.po CHANGED
@@ -323,7 +323,7 @@ msgid "Save &amp; Reload"
323
  msgstr "Enregistrer & recharger"
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:546,
326
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
327
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
323
  msgstr "Enregistrer & recharger"
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:546,
326
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
327
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
languages/wpglobus-fr_FR.po CHANGED
@@ -323,7 +323,7 @@ msgid "Save &amp; Reload"
323
  msgstr "Enregistrer & recharger"
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:546,
326
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
327
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
323
  msgstr "Enregistrer & recharger"
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:546,
326
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
327
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
languages/wpglobus-id_ID.po CHANGED
@@ -312,7 +312,7 @@ msgid "Save &amp; Reload"
312
  msgstr "Simpan &amp; Reload"
313
 
314
  #: includes/admin/class-wpglobus-customize-options.php:546,
315
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
316
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
317
  msgid "WPGlobus"
318
  msgstr "WPGlobus"
312
  msgstr "Simpan &amp; Reload"
313
 
314
  #: includes/admin/class-wpglobus-customize-options.php:546,
315
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
316
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
317
  msgid "WPGlobus"
318
  msgstr "WPGlobus"
languages/wpglobus-ko_KR.po CHANGED
@@ -264,7 +264,7 @@ msgid "Save &amp; Reload"
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
languages/wpglobus-pl_PL.po CHANGED
@@ -282,7 +282,7 @@ msgid "Save &amp; Reload"
282
  msgstr ""
283
 
284
  #: includes/admin/class-wpglobus-customize-options.php:546,
285
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
286
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
287
  msgid "WPGlobus"
288
  msgstr "WPGlobus"
282
  msgstr ""
283
 
284
  #: includes/admin/class-wpglobus-customize-options.php:546,
285
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
286
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
287
  msgid "WPGlobus"
288
  msgstr "WPGlobus"
languages/wpglobus-pt_BR.po CHANGED
@@ -264,7 +264,7 @@ msgid "Save &amp; Reload"
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
languages/wpglobus-pt_PT.po CHANGED
@@ -264,7 +264,7 @@ msgid "Save &amp; Reload"
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
264
  msgstr ""
265
 
266
  #: includes/admin/class-wpglobus-customize-options.php:546,
267
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
268
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
269
  msgid "WPGlobus"
270
  msgstr ""
languages/wpglobus-ro_RO.po CHANGED
@@ -281,7 +281,7 @@ msgid "Save &amp; Reload"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr "WPGlobus"
281
  msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:546,
284
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
285
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr "WPGlobus"
languages/wpglobus-ru_RU.po CHANGED
@@ -313,7 +313,7 @@ msgid "Save &amp; Reload"
313
  msgstr "Сохранить и перезагрузить"
314
 
315
  #: includes/admin/class-wpglobus-customize-options.php:546,
316
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
317
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
318
  msgid "WPGlobus"
319
  msgstr "WPGlobus"
313
  msgstr "Сохранить и перезагрузить"
314
 
315
  #: includes/admin/class-wpglobus-customize-options.php:546,
316
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
317
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
318
  msgid "WPGlobus"
319
  msgstr "WPGlobus"
languages/wpglobus-sv_SE.po CHANGED
@@ -280,7 +280,7 @@ msgid "Save &amp; Reload"
280
  msgstr ""
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:546,
283
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
284
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
280
  msgstr ""
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:546,
283
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
284
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
languages/wpglobus-tr_TR.po CHANGED
@@ -282,7 +282,7 @@ msgid "Save &amp; Reload"
282
  msgstr ""
283
 
284
  #: includes/admin/class-wpglobus-customize-options.php:546,
285
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
286
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
287
  msgid "WPGlobus"
288
  msgstr ""
282
  msgstr ""
283
 
284
  #: includes/admin/class-wpglobus-customize-options.php:546,
285
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
286
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
287
  msgid "WPGlobus"
288
  msgstr ""
languages/wpglobus-uk.po CHANGED
@@ -301,7 +301,7 @@ msgid "Save &amp; Reload"
301
  msgstr "Зберегти та перезавантажити"
302
 
303
  #: includes/admin/class-wpglobus-customize-options.php:546,
304
- #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:339,
305
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
306
  msgid "WPGlobus"
307
  msgstr "WPGlobus"
301
  msgstr "Зберегти та перезавантажити"
302
 
303
  #: includes/admin/class-wpglobus-customize-options.php:546,
304
+ #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:346,
305
  #: includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
306
  msgid "WPGlobus"
307
  msgstr "WPGlobus"
languages/wpglobus.pot CHANGED
@@ -197,7 +197,7 @@ msgstr ""
197
  msgid "Save &amp; Reload"
198
  msgstr ""
199
 
200
- #: includes/admin/class-wpglobus-customize-options.php:546, includes/builders/gutenberg/class-wpglobus-gutenberg.php:339, includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
201
  msgid "WPGlobus"
202
  msgstr ""
203
 
197
  msgid "Save &amp; Reload"
198
  msgstr ""
199
 
200
+ #: includes/admin/class-wpglobus-customize-options.php:546, includes/builders/gutenberg/class-wpglobus-gutenberg.php:346, includes/class-wpglobus.php:1325, wpglobus.php:12, wpglobus.php:18
201
  msgid "WPGlobus"
202
  msgstr ""
203
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: tivnetinc, alexgff, tivnet
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLF8M4YNZHNQN
4
  Tags: WPGlobus, localization, multilanguage, multilingual, translate
5
  Requires at least: 4.9
6
- Tested up to: 5.0.3
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
@@ -216,6 +216,15 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
216
 
217
  == Changelog ==
218
 
 
 
 
 
 
 
 
 
 
219
  = 2.1.5 =
220
 
221
  * REVISED:
@@ -228,13 +237,6 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
228
  * FIXED:
229
  * Builders: prevent to filter disabled post types.
230
 
231
- = 2.1.3 =
232
-
233
- * ADDED:
234
- * Vendor/ACF: support ACF repeater field in builder mode.
235
- * REVISED:
236
- * Vendor/Yoast: `get_post_metadata` filter.
237
-
238
  == Demo Sites ==
239
 
240
  * [WPGlobus.com](https://wpglobus.com/):
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLF8M4YNZHNQN
4
  Tags: WPGlobus, localization, multilanguage, multilingual, translate
5
  Requires at least: 4.9
6
+ Tested up to: 5.0.4
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
216
 
217
  == Changelog ==
218
 
219
+ = 2.1.6 =
220
+
221
+ * FIXED:
222
+ * Builders/Gutenberg: don't show our metabox when editing post types where WPGlobus is disabled.
223
+ * INTERNAL:
224
+ * Core/Builders: use the `$_POST['post_type']` value to define post type on the `post.php` page (WordPress 5).
225
+ * Core/Builders: added the `$post_type` parameter to the `get_3rd_party_status_for_gutenberg()` function.
226
+ * Builders/WooCommerce: revised `get_3rd_party_status_for_gutenberg()` algorithm when WooCommerce is active.
227
+
228
  = 2.1.5 =
229
 
230
  * REVISED:
237
  * FIXED:
238
  * Builders: prevent to filter disabled post types.
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.1.5
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.1.5' );
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.1.6
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.1.6' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
 
48
  /**