Version Description
- Gutenberg block content was not translated correctly in WordPress 5.0
Download this release
Release Info
Developer | wp-buddy |
Plugin | Google Analytics Opt-Out |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- google-analytics-opt-out.php +1 -1
- inc/admin.php +13 -9
- readme.txt +5 -2
google-analytics-opt-out.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Google Analytics Opt-Out
|
4 |
Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out
|
5 |
Description: Provides an Opt-Out functionality for Google Analytics
|
6 |
-
Version: 2.2.
|
7 |
Author: WP-Buddy
|
8 |
Author URI: https://wp-buddy.com
|
9 |
License: GPL2
|
3 |
Plugin Name: Google Analytics Opt-Out
|
4 |
Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out
|
5 |
Description: Provides an Opt-Out functionality for Google Analytics
|
6 |
+
Version: 2.2.4
|
7 |
Author: WP-Buddy
|
8 |
Author URI: https://wp-buddy.com
|
9 |
License: GPL2
|
inc/admin.php
CHANGED
@@ -135,14 +135,18 @@ function gaoop_gutenberg_editor_assets() {
|
|
135 |
);
|
136 |
|
137 |
if ( function_exists( 'gutenberg_get_jed_locale_data' ) ) {
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
-
|
143 |
-
wp_add_inline_script(
|
144 |
-
'gaoop-block',
|
145 |
-
'wp.i18n.setLocaleData( ' . wp_json_encode( $data ) . ', "gaoop" );',
|
146 |
-
'before'
|
147 |
-
);
|
148 |
}
|
135 |
);
|
136 |
|
137 |
if ( function_exists( 'gutenberg_get_jed_locale_data' ) ) {
|
138 |
+
wp_add_inline_script(
|
139 |
+
'gaoop-block',
|
140 |
+
'wp.i18n.setLocaleData( ' . wp_json_encode( gutenberg_get_jed_locale_data( 'gaoop' ) ) . ', "gaoop" );',
|
141 |
+
'before'
|
142 |
+
);
|
143 |
+
} elseif ( function_exists( 'wp_get_jed_locale_data' ) ) {
|
144 |
+
wp_add_inline_script(
|
145 |
+
'gaoop-block',
|
146 |
+
'wp.i18n.setLocaleData( ' . wp_json_encode( wp_get_jed_locale_data( 'gaoop' ) ) . ', "gaoop" );',
|
147 |
+
'before'
|
148 |
+
);
|
149 |
+
} elseif ( function_exists( 'wp_set_script_translations' ) ) {
|
150 |
+
wp_set_script_translations( 'gaoop-block', 'gaoop' );
|
151 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: wp-buddy, floriansimeth
|
3 |
Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
|
4 |
Tags: google analytics opt-out, monster insights, gdpr
|
5 |
-
Version: 2.2.
|
6 |
-
Stable tag: 2.2.
|
7 |
Requires at least: 4.8.0
|
8 |
Requires PHP: 5.6.0
|
9 |
Tested up to: 5.0
|
@@ -42,6 +42,9 @@ The free and the pro version have now been merged together. So you now can have
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 2.2.3 =
|
46 |
* Fixed PHP warning: filemtime(): stat failed in line xyz
|
47 |
|
2 |
Contributors: wp-buddy, floriansimeth
|
3 |
Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
|
4 |
Tags: google analytics opt-out, monster insights, gdpr
|
5 |
+
Version: 2.2.4
|
6 |
+
Stable tag: 2.2.4
|
7 |
Requires at least: 4.8.0
|
8 |
Requires PHP: 5.6.0
|
9 |
Tested up to: 5.0
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 2.2.4 =
|
46 |
+
* Gutenberg block content was not translated correctly in WordPress 5.0
|
47 |
+
|
48 |
= 2.2.3 =
|
49 |
* Fixed PHP warning: filemtime(): stat failed in line xyz
|
50 |
|