Cookie Law / GDPR Info - Version 1.6.9

Version Description

  • New enclosing shortcode added for better control of third party content. [cookie_after_accept]..content goes here..[/cookie_after_accept]
  • Basic support included for Litespeed cache, WP Super Cache, Site ground cache, Endurance Cache, WP Fastest Cache.
  • Option to choose from the built-in pages for 'Read More' link.
Download this release

Release Info

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

Code changes from version 1.6.10 to 1.6.9

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.webtoffee.com/plugins/
4
  Tags: eu cookie law, GDPR, cookie law, cookie consent, eu privacy directive, privacy directive, cookies, privacy, compliance
5
  Requires at least: 3.3.1
6
  Tested up to: 4.9.8
7
- Stable tag: 1.6.10
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -174,11 +174,6 @@ See http://cookielawinfo.com for more information on what is required.
174
  == Changelog ==
175
 
176
 
177
- = 1.6.10 =
178
-
179
- * Bug: submenu sorting issue for non administrator accounts
180
- * Bug: Flashing the cookie bar on page load.
181
-
182
  = 1.6.9 =
183
 
184
  * New enclosing shortcode added for better control of third party content. [cookie_after_accept]..content goes here..[/cookie_after_accept]
@@ -336,7 +331,7 @@ See http://cookielawinfo.com for more information on what is required.
336
 
337
  == Upgrade Notice ==
338
 
339
- = 1.6.10 =
340
-
341
- * Bug: submenu sorting issue for non administrator accounts
342
- * Bug: Flashing the cookie bar on page load.
4
  Tags: eu cookie law, GDPR, cookie law, cookie consent, eu privacy directive, privacy directive, cookies, privacy, compliance
5
  Requires at least: 3.3.1
6
  Tested up to: 4.9.8
7
+ Stable tag: 1.6.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
174
  == Changelog ==
175
 
176
 
 
 
 
 
 
177
  = 1.6.9 =
178
 
179
  * New enclosing shortcode added for better control of third party content. [cookie_after_accept]..content goes here..[/cookie_after_accept]
331
 
332
  == Upgrade Notice ==
333
 
334
+ = 1.6.9 =
335
+ * New enclosing shortcode added for better control of third party content. [cookie_after_accept]..content goes here..[/cookie_after_accept]
336
+ * Basic support included for Litespeed cache, WP Super Cache, Site ground cache, Endurance Cache, WP Fastest Cache
337
+ * Option to choose from the built-in pages for 'Read More' link.
admin/class-cookie-law-info-admin.php CHANGED
@@ -154,23 +154,20 @@ class Cookie_Law_Info_Admin {
154
  array($this,'admin_non_necessary_cookie_page')
155
  );
156
  //rearrange settings menu
157
- if(isset($submenu) && !empty($submenu) && is_array($submenu))
 
 
158
  {
159
- $out=array();
160
- $back_up_settings_menu=array();
161
- foreach ($submenu['edit.php?post_type='.CLI_POST_TYPE] as $key => $value)
162
  {
163
- if($value[2]=='cookie-law-info')
164
- {
165
- $back_up_settings_menu=$value;
166
- }else
167
- {
168
- $out[$key]=$value;
169
- }
170
  }
171
- array_unshift($out,$back_up_settings_menu);
172
- $submenu['edit.php?post_type='.CLI_POST_TYPE]=$out;
173
  }
 
 
174
  }
175
 
176
  public function plugin_action_links( $links )
@@ -431,10 +428,7 @@ class Cookie_Law_Info_Admin {
431
  function remove_cli_addnew_link()
432
  {
433
  global $submenu;
434
- if(isset($submenu) && !empty($submenu) && is_array($submenu))
435
- {
436
- unset($submenu['edit.php?post_type='.CLI_POST_TYPE][10]);
437
- }
438
  }
439
 
440
 
154
  array($this,'admin_non_necessary_cookie_page')
155
  );
156
  //rearrange settings menu
157
+ $out=array();
158
+ $back_up_settings_menu=array();
159
+ foreach ($submenu['edit.php?post_type='.CLI_POST_TYPE] as $key => $value)
160
  {
161
+ if($value[2]=='cookie-law-info')
 
 
162
  {
163
+ $back_up_settings_menu=$value;
164
+ }else
165
+ {
166
+ $out[$key]=$value;
 
 
 
167
  }
 
 
168
  }
169
+ array_unshift($out,$back_up_settings_menu);
170
+ $submenu['edit.php?post_type='.CLI_POST_TYPE]=$out;
171
  }
172
 
173
  public function plugin_action_links( $links )
428
  function remove_cli_addnew_link()
429
  {
430
  global $submenu;
431
+ unset($submenu['edit.php?post_type='.CLI_POST_TYPE][10]);
 
 
 
432
  }
433
 
434
 
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: 1.6.10
20
  * Author: WebToffee
21
  * Author URI: http://cookielawinfo.com/
22
  * License: GPLv3
@@ -63,7 +63,7 @@ define ( 'CLI_POST_TYPE','cookielawinfo');
63
  * Currently plugin version.
64
  * Rename this for your plugin and update it as you release new versions.
65
  */
66
- define( 'CLI_VERSION', '1.6.10' );
67
 
68
 
69
  /**
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: 1.6.9
20
  * Author: WebToffee
21
  * Author URI: http://cookielawinfo.com/
22
  * License: GPLv3
63
  * Currently plugin version.
64
  * Rename this for your plugin and update it as you release new versions.
65
  */
66
+ define( 'CLI_VERSION', '1.6.9' );
67
 
68
 
69
  /**
includes/class-cookie-law-info.php CHANGED
@@ -76,7 +76,7 @@ class Cookie_Law_Info {
76
  }
77
  else
78
  {
79
- $this->version = '1.6.10';
80
  }
81
  $this->plugin_name = 'cookie-law-info';
82
 
76
  }
77
  else
78
  {
79
+ $this->version = '1.6.9';
80
  }
81
  $this->plugin_name = 'cookie-law-info';
82
 
public/css/cookie-law-info-public.css CHANGED
@@ -8,7 +8,6 @@
8
  width: 100%;
9
  z-index: 9999;
10
  box-shadow:rgba(0,0,0,.5) 0px 5px 50px;
11
- display: none;
12
  }
13
  #cookie-law-info-again {
14
  font-size: 10pt;
8
  width: 100%;
9
  z-index: 9999;
10
  box-shadow:rgba(0,0,0,.5) 0px 5px 50px;
 
11
  }
12
  #cookie-law-info-again {
13
  font-size: 10pt;