WPGlobus – Multilingual Everything! - Version 2.5.18

Version Description

  • (Builders/Pods) Fixed Uncaught Error: Call to a member function fields() on bool.
Download this release

Release Info

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

Code changes from version 2.5.17 to 2.5.18

includes/vendor/pods/class-wpglobus-vendor-pods-front.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * class-wpglobus-vendor-pods-front.php
4
  *
5
  * @since 2.3.0
6
  *
1
  <?php
2
  /**
3
+ * File: class-wpglobus-vendor-pods-front.php
4
  *
5
  * @since 2.3.0
6
  *
includes/vendor/pods/class-wpglobus-vendor-pods.php CHANGED
@@ -177,9 +177,18 @@ if ( ! class_exists( 'WPGlobus_Vendor_Pods' ) ) :
177
  protected static function get_fields( $post_id, $post_type ) {
178
 
179
  /**
180
- * @see pods\classes\Pods.php
181
  */
182
  $pods = pods($post_type, $post_id);
 
 
 
 
 
 
 
 
 
183
  $_fields = $pods->fields();
184
 
185
  if ( empty( $_fields ) ) {
177
  protected static function get_fields( $post_id, $post_type ) {
178
 
179
  /**
180
+ * @see pods\includes\classes.php
181
  */
182
  $pods = pods($post_type, $post_id);
183
+
184
+ /**
185
+ * Return if Pods is false.
186
+ * @since 2.5.18
187
+ */
188
+ if ( ! $pods ) {
189
+ return false;
190
+ }
191
+
192
  $_fields = $pods->fields();
193
 
194
  if ( empty( $_fields ) ) {
languages/wpglobus.pot CHANGED
@@ -1,8 +1,8 @@
1
- # Copyright (C) 2020 WPGlobus 2.5.17
2
- # This file is distributed under the same license as the WPGlobus 2.5.17 package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPGlobus 2.5.17\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) 2020 WPGlobus 2.5.18
2
+ # This file is distributed under the same license as the WPGlobus 2.5.18 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPGlobus 2.5.18\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
@@ -217,6 +217,10 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
217
 
218
  == Changelog ==
219
 
 
 
 
 
220
  = 2.5.17 =
221
 
222
  * (Core/JS) Fixed `Uncaught TypeError: Cannot read property of undefined`.
217
 
218
  == Changelog ==
219
 
220
+ = 2.5.18 =
221
+
222
+ * (Builders/Pods) Fixed `Uncaught Error: Call to a member function fields() on bool`.
223
+
224
  = 2.5.17 =
225
 
226
  * (Core/JS) Fixed `Uncaught TypeError: Cannot read property of undefined`.
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.5.17
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.5.17' );
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.5.18
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
44
  exit;
45
  }
46
 
47
+ define( 'WPGLOBUS_VERSION', '2.5.18' );
48
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
49
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
50