Cookie Law / GDPR Info - Version 2.1.3

Version Description

  • [Enhancement] - Revisit consent will be enabled by default
  • [Enhancement] - Update in policy generator
Download this release

Release Info

Developer webtoffee
Plugin Icon Cookie Law / GDPR Info
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

admin/modules/cli-policy-generator/data/data.block5.php CHANGED
@@ -1,5 +1,5 @@
1
 
2
- <p>Should you decide to change your preferences later through your browsing session, you can click on the "Privacy & Cookie Policy" tab on your screen. This will display the consent notice again enabling you to change your preferences or withdraw your consent entirely.</p>
3
 
4
  <p>In addition to this, different browsers provide different methods to block and delete cookies used by websites. You can change the settings of your browser to block/delete the cookies. To find out more about how to manage and delete cookies, visit <a href="https://en.wikipedia.org/wiki/HTTP_cookie" rel="nofollow" target="_blank">wikipedia.org</a>, <a href="http://www.allaboutcookies.org/" rel="nofollow" target="_blank">www.allaboutcookies.org.</a>
5
  </p>
1
 
2
+ <p>Should you decide to change your preferences later through your browsing session, you can click on the "Manage consent" tab on your screen. This will display the consent notice again enabling you to change your preferences or withdraw your consent entirely.</p>
3
 
4
  <p>In addition to this, different browsers provide different methods to block and delete cookies used by websites. You can change the settings of your browser to block/delete the cookies. To find out more about how to manage and delete cookies, visit <a href="https://en.wikipedia.org/wiki/HTTP_cookie" rel="nofollow" target="_blank">wikipedia.org</a>, <a href="http://www.allaboutcookies.org/" rel="nofollow" target="_blank">www.allaboutcookies.org.</a>
5
  </p>
cookie-law-info.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: GDPR Cookie Consent
17
  * Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
18
  * Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
19
- * Version: 2.1.2
20
  * Author: WebToffee
21
  * Author URI: https://www.webtoffee.com/
22
  * License: GPLv3
@@ -70,7 +70,7 @@ define( 'CLI_ACTIVATION_ID', 'wtgdprcookieconsent' );
70
  * Currently plugin version.
71
  * Rename this for your plugin and update it as you release new versions.
72
  */
73
- define( 'CLI_VERSION', '2.1.2' );
74
 
75
  function wt_cookie_law_info_update_message( $data, $response ) {
76
  if ( isset( $data['upgrade_notice'] ) ) {
@@ -159,6 +159,21 @@ function uninstall_cookie_law_info() {
159
  */
160
  require plugin_dir_path( __FILE__ ) . 'includes/class-cookie-law-info.php';
161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
 
163
  /**
164
  * Begins execution of the plugin.
16
  * Plugin Name: GDPR Cookie Consent
17
  * Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
18
  * Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
19
+ * Version: 2.1.3
20
  * Author: WebToffee
21
  * Author URI: https://www.webtoffee.com/
22
  * License: GPLv3
70
  * Currently plugin version.
71
  * Rename this for your plugin and update it as you release new versions.
72
  */
73
+ define( 'CLI_VERSION', '2.1.3' );
74
 
75
  function wt_cookie_law_info_update_message( $data, $response ) {
76
  if ( isset( $data['upgrade_notice'] ) ) {
159
  */
160
  require plugin_dir_path( __FILE__ ) . 'includes/class-cookie-law-info.php';
161
 
162
+ /**
163
+ * Disable auto updates.
164
+ *
165
+ * @param boolean $update To update or not.
166
+ * @param object $item Plugin slug.
167
+ * @return boolean
168
+ */
169
+ function cky_disable_auto_update_plugin( $update, $item ) {
170
+ $plugins = array( 'cookie-law-info' );
171
+ if ( isset( $item->slug ) && in_array( $item->slug, $plugins, true ) ) {
172
+ $update = false;
173
+ }
174
+ return $update;
175
+ }
176
+ add_filter( 'auto_update_plugin', 'cky_disable_auto_update_plugin', 10, 2 );
177
 
178
  /**
179
  * Begins execution of the plugin.
includes/class-cookie-law-info.php CHANGED
@@ -74,7 +74,7 @@ class Cookie_Law_Info {
74
  if ( defined( 'CLI_VERSION' ) ) {
75
  $this->version = CLI_VERSION;
76
  } else {
77
- $this->version = '2.1.2';
78
  }
79
  $this->plugin_name = 'cookie-law-info';
80
 
@@ -400,7 +400,7 @@ class Cookie_Law_Info {
400
  'showagain_border' => '#000',
401
  'showagain_text' => addslashes( 'Manage consent' ),
402
  'showagain_div_id' => '#cookie-law-info-again',
403
- 'showagain_tab' => false,
404
  'showagain_x_position' => '100px',
405
  'text' => '#333333',
406
  'use_colour_picker' => true,
74
  if ( defined( 'CLI_VERSION' ) ) {
75
  $this->version = CLI_VERSION;
76
  } else {
77
+ $this->version = '2.1.3';
78
  }
79
  $this->plugin_name = 'cookie-law-info';
80
 
400
  'showagain_border' => '#000',
401
  'showagain_text' => addslashes( 'Manage consent' ),
402
  'showagain_div_id' => '#cookie-law-info-again',
403
+ 'showagain_tab' => true,
404
  'showagain_x_position' => '100px',
405
  'text' => '#333333',
406
  'use_colour_picker' => true,
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: GDPR, CCPA, cookie notice, DSGVO, RGPD, LGPD, PIPEDA, POPIA, cookies , coo
5
  Requires at least: 4.4.0
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 2.1.2
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -191,6 +191,11 @@ For every update of the plugin, you will be notified of the installed plugins pa
191
 
192
  == Changelog ==
193
 
 
 
 
 
 
194
  = 2.1.2 =
195
 
196
  * Fix - Accept/Reject button is not working as expected with some themes.
@@ -559,6 +564,7 @@ For every update of the plugin, you will be notified of the installed plugins pa
559
 
560
  == Upgrade Notice ==
561
 
562
- = 2.1.2 =
563
 
564
- * Fix - Accept/Reject button is not working as expected with some themes.
 
5
  Requires at least: 4.4.0
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.1.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
191
 
192
  == Changelog ==
193
 
194
+ = 2.1.3 =
195
+
196
+ * [Enhancement] - Revisit consent will be enabled by default
197
+ * [Enhancement] - Update in policy generator
198
+
199
  = 2.1.2 =
200
 
201
  * Fix - Accept/Reject button is not working as expected with some themes.
564
 
565
  == Upgrade Notice ==
566
 
567
+ = 2.1.3 =
568
 
569
+ * [Enhancement] - Revisit consent will be enabled by default
570
+ * [Enhancement] - Update in policy generator