Cookiebot | GDPR Compliant Cookie Consent and Notice - Version 3.7.1

Version Description

Download this release

Release Info

Developer cookiebot
Plugin Icon 128x128 Cookiebot | GDPR Compliant Cookie Consent and Notice
Version 3.7.1
Comparing to
See all releases

Code changes from version 3.7.0 to 3.7.1

Files changed (4) hide show
  1. README.md +1 -1
  2. addons/cookiebot-addons-init.php +1 -1
  3. cookiebot.php +20 -9
  4. readme.txt +4 -1
README.md CHANGED
@@ -95,6 +95,6 @@ Way to go!
95
  # Need to get in touch?
96
 
97
  There are several ways you can get in touch with us. <br>
98
- We are available on the Making Wordress Slack workspace. <br>
99
  Username: Kenan <br>
100
  You can also reach us through our helpdesk at www.cookiebot.com/goto/helpdesk/
95
  # Need to get in touch?
96
 
97
  There are several ways you can get in touch with us. <br>
98
+ We are available on the Making Wordpress Slack workspace. <br>
99
  Username: Kenan <br>
100
  You can also reach us through our helpdesk at www.cookiebot.com/goto/helpdesk/
addons/cookiebot-addons-init.php CHANGED
@@ -23,7 +23,7 @@ define( 'COOKIEBOT_ADDONS_BASE_NAME', dirname( plugin_basename( __FILE__ ) ) );
23
  /**
24
  * Same version as the CookiebotWP
25
  */
26
- define( 'COOKIEBOT_ADDONS_VERSION', '3.7.0' );
27
 
28
  /**
29
  * Register autoloader to load files/classes dynamically
23
  /**
24
  * Same version as the CookiebotWP
25
  */
26
+ define( 'COOKIEBOT_ADDONS_VERSION', '3.7.1' );
27
 
28
  /**
29
  * Register autoloader to load files/classes dynamically
cookiebot.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Cookiebot | GDPR/CCPA Compliant Cookie Consent and Control
4
  Plugin URI: https://cookiebot.com/
5
  Description: Cookiebot is a cloud-driven solution that automatically controls cookies and trackers, enabling full GDPR/ePrivacy and CCPA compliance for websites.
6
  Author: Cybot A/S
7
- Version: 3.7.0
8
  Author URI: http://cookiebot.com
9
  Text Domain: cookiebot
10
  Domain Path: /langs
@@ -21,7 +21,7 @@ final class Cookiebot_WP {
21
  * @var string
22
  * @since 1.0.0
23
  */
24
- public $version = '3.7.0';
25
 
26
  /**
27
  * @var Cookiebot_WP The single instance of the class
@@ -59,7 +59,6 @@ final class Cookiebot_WP {
59
  register_deactivation_hook( __FILE__, 'cookiebot_addons_plugin_deactivated' );
60
 
61
  $this->cookiebot_fix_plugin_conflicts();
62
- $this->gutenberg_block_setup();
63
  }
64
 
65
  /**
@@ -207,6 +206,10 @@ final class Cookiebot_WP {
207
  include_once( dirname( __FILE__ ) . '/widgets/cookiebot-declaration-widget.php' );
208
  add_action( 'widgets_init', array($this,'register_widgets') );
209
 
 
 
 
 
210
  }
211
 
212
 
@@ -220,18 +223,26 @@ final class Cookiebot_WP {
220
  if ( ! function_exists( 'register_block_type' ) ) {
221
  return; //gutenberg not active
222
  }
223
-
 
 
 
 
 
 
 
 
 
 
 
 
224
  //Add Gutenberg Widget
225
  wp_enqueue_script(
226
  'cookiebot-declaration',
227
- plugin_dir_url( __FILE__ ) . '/js/block.js',
228
  array('wp-blocks', 'wp-i18n', 'wp-element'), // Required scripts for the block
229
  $this->version
230
  );
231
-
232
- register_block_type( 'cookiebot/cookie-declaration', array(
233
- 'render_callback' => array( $this, 'block_cookie_declaration' )
234
- ) );
235
  }
236
 
237
  /**
4
  Plugin URI: https://cookiebot.com/
5
  Description: Cookiebot is a cloud-driven solution that automatically controls cookies and trackers, enabling full GDPR/ePrivacy and CCPA compliance for websites.
6
  Author: Cybot A/S
7
+ Version: 3.7.1
8
  Author URI: http://cookiebot.com
9
  Text Domain: cookiebot
10
  Domain Path: /langs
21
  * @var string
22
  * @since 1.0.0
23
  */
24
+ public $version = '3.7.1';
25
 
26
  /**
27
  * @var Cookiebot_WP The single instance of the class
59
  register_deactivation_hook( __FILE__, 'cookiebot_addons_plugin_deactivated' );
60
 
61
  $this->cookiebot_fix_plugin_conflicts();
 
62
  }
63
 
64
  /**
206
  include_once( dirname( __FILE__ ) . '/widgets/cookiebot-declaration-widget.php' );
207
  add_action( 'widgets_init', array($this,'register_widgets') );
208
 
209
+
210
+ //Add Gutenberg block
211
+ add_action( 'enqueue_block_assets', array($this,'gutenberg_block_setup') );
212
+ add_action( 'enqueue_block_editor_assets', array($this,'gutenberg_block_admin_assets') );
213
  }
214
 
215
 
223
  if ( ! function_exists( 'register_block_type' ) ) {
224
  return; //gutenberg not active
225
  }
226
+
227
+ register_block_type( 'cookiebot/cookie-declaration', array(
228
+ 'render_callback' => array( $this, 'block_cookie_declaration' )
229
+ ) );
230
+ }
231
+
232
+ /**
233
+ * Cookiebot_WP Add block JS
234
+ *
235
+ * @version 3.7.1
236
+ * @since 3.7.1
237
+ */
238
+ function gutenberg_block_admin_assets() {
239
  //Add Gutenberg Widget
240
  wp_enqueue_script(
241
  'cookiebot-declaration',
242
+ plugin_dir_url( __FILE__ ) . 'js/block.js',
243
  array('wp-blocks', 'wp-i18n', 'wp-element'), // Required scripts for the block
244
  $this->version
245
  );
 
 
 
 
246
  }
247
 
248
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@
3
  * Tags: cookie, compliance, eu, gdpr, europe, cookie consent, consent, ccpa
4
  * Requires at least: 4.4
5
  * Tested up to: 5.4.2
6
- * Stable tag: 3.7.0
7
  * Requires PHP: 5.6
8
  * License: GPLv2 or later
9
 
@@ -190,6 +190,9 @@ You are able to define the mapping between Cookiebot and the WP Consent API in t
190
 
191
  ## Changelog ##
192
 
 
 
 
193
  ### 3.7.0 - 2020-07-06 ###
194
  * Adding CCPA feature
195
  * Adding Gutenberg Cookie Declaration block for editor
3
  * Tags: cookie, compliance, eu, gdpr, europe, cookie consent, consent, ccpa
4
  * Requires at least: 4.4
5
  * Tested up to: 5.4.2
6
+ * Stable tag: 3.7.1
7
  * Requires PHP: 5.6
8
  * License: GPLv2 or later
9
 
190
 
191
  ## Changelog ##
192
 
193
+ ### 3.7.1 - 2020-07-08 ###
194
+ * Fix "wp_enqueue_script was called incorrectly" notice
195
+
196
  ### 3.7.0 - 2020-07-06 ###
197
  * Adding CCPA feature
198
  * Adding Gutenberg Cookie Declaration block for editor