WPGlobus – Multilingual Everything! - Version 2.2.27

Version Description

  • Added: (Vendor/Acf) If editor is hidden by ACF, we hide WPGlobus, too.
Download this release

Release Info

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

Code changes from version 2.2.26 to 2.2.27

includes/vendor/class-wpglobus-acf.php CHANGED
@@ -23,8 +23,49 @@ class WPGlobus_Acf {
23
  ), 99, 2
24
  );
25
 
 
 
 
 
 
 
 
 
 
 
 
26
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
 
 
 
28
  /**
29
  * Filter @see 'acf/field_group/get_options'
30
  *
23
  ), 99, 2
24
  );
25
 
26
+ /**
27
+ * @since 2.2.27
28
+ * @see advanced-custom-fields\includes\acf-field-group-functions.php
29
+ */
30
+ add_filter(
31
+ 'acf/get_field_group_style',
32
+ array(
33
+ __CLASS__,
34
+ 'filter__get_field_group_style'
35
+ ), 10, 2
36
+ );
37
  }
38
+
39
+ /**
40
+ * Filters the generated CSS styles.
41
+ *
42
+ * @since 2.2.27
43
+ *
44
+ * @param string $style The CSS styles.
45
+ * @param array $field_group The field group array.
46
+ */
47
+ public static function filter__get_field_group_style($style, $field_group){
48
+
49
+ if( is_array($field_group['hide_on_screen']) ) {
50
+
51
+ if ( in_array( 'the_content', $field_group['hide_on_screen'], true ) ) {
52
+ /**
53
+ * If editor is hidden by ACF, we hide WPGlobus, too.
54
+ */
55
+ add_filter(
56
+ 'wpglobus_postdivrich_style',
57
+ array(
58
+ __CLASS__,
59
+ 'filter__postdivrich_style'
60
+ ), 10, 2
61
+ );
62
+ }
63
+
64
+ }
65
 
66
+ return $style;
67
+ }
68
+
69
  /**
70
  * Filter @see 'acf/field_group/get_options'
71
  *
languages/wpglobus.pot CHANGED
@@ -1,8 +1,8 @@
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"
1
+ # Copyright (C) 2019 WPGlobus 2.2.27
2
+ # This file is distributed under the same license as the WPGlobus 2.2.27 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPGlobus 2.2.27\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,10 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
218
 
219
  == Changelog ==
220
 
 
 
 
 
221
  = 2.2.26 =
222
 
223
  * Fixed: (Core/Builders) Don't initialize the Builders class when initial attributes are empty.
@@ -247,15 +251,6 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
247
  * Fixed: (Core) Uncaught `TypeError: WPGlobusYoastSeo.init is not a function`.
248
  * Internal: (Builders/Gutenberg) Updated save post message.
249
 
250
- = 2.2.20 =
251
-
252
- * Added: (Core/Post Types) Hide Gutenberg's post types.
253
- * Added: (Core/Recommendation) A link to the "Recommendations" tab from the `plugins.php` page.
254
- * Added: (Admin/HelpDesk) Get subject from `$_GET` array.
255
- * Added: (Vendor/Yoast) Support Yoast SEO from v.12.
256
- * Added: (Vendor/Yoast) Support Yoast SEO Premium from v.12.(Beta stage).
257
- * Added: (Core/WPGlobusDialogApp) `afterSave` callback.
258
-
259
  = Earlier versions and Add-ons =
260
 
261
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
218
 
219
  == Changelog ==
220
 
221
+ = 2.2.27 =
222
+
223
+ * Added: (Vendor/Acf) If editor is hidden by ACF, we hide WPGlobus, too.
224
+
225
  = 2.2.26 =
226
 
227
  * Fixed: (Core/Builders) Don't initialize the Builders class when initial attributes are empty.
251
  * Fixed: (Core) Uncaught `TypeError: WPGlobusYoastSeo.init is not a function`.
252
  * Internal: (Builders/Gutenberg) Updated save post message.
253
 
 
 
 
 
 
 
 
 
 
254
  = Earlier versions and Add-ons =
255
 
256
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
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.26
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.26' );
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.27
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.2.27' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48