Version Description
Download this release
Release Info
Developer | wpautoterms |
Plugin | Auto Terms of Service and Privacy Policy |
Version | 2.4.8 |
Comparing to | |
See all releases |
Code changes from version 2.4.7 to 2.4.8
- README.txt +5 -1
- auto-terms-of-service-privacy-policy.php +1 -1
- includes/frontend/notice/base-notice.php +2 -2
- js/wpautoterms.js +4 -2
README.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: privacy policy, terms and conditions, cookie consent, cookie notice, ccpa,
|
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 2.4.
|
8 |
License: GPL version 3 or any later version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -119,6 +119,10 @@ Installing the plugin is easy. Just follow these steps:
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
|
|
122 |
= Version 2.4.7 =
|
123 |
* Aug 13, 2021
|
124 |
* Updated: Tested with WordPress 5.8
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 2.4.8
|
8 |
License: GPL version 3 or any later version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
= Version 2.4.8 =
|
123 |
+
* Aug 26, 2021
|
124 |
+
* Fix: Fixed localization issue for the Cookie Notice compliance kit
|
125 |
+
|
126 |
= Version 2.4.7 =
|
127 |
* Aug 13, 2021
|
128 |
* Updated: Tested with WordPress 5.8
|
auto-terms-of-service-privacy-policy.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wpautoterms.com
|
|
5 |
Description: Create Privacy Policy, GDPR Privacy Policy, Terms & Conditions, Disclaimers. Cookie Consent Banner. More Compliance Kits to help you get compliant with the law.
|
6 |
Author: WP AutoTerms
|
7 |
Author URI: https://wpautoterms.com
|
8 |
-
Version: 2.4.
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: wpautoterms
|
11 |
Domain Path: /languages
|
5 |
Description: Create Privacy Policy, GDPR Privacy Policy, Terms & Conditions, Disclaimers. Cookie Consent Banner. More Compliance Kits to help you get compliant with the law.
|
6 |
Author: WP AutoTerms
|
7 |
Author URI: https://wpautoterms.com
|
8 |
+
Version: 2.4.8
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: wpautoterms
|
11 |
Domain Path: /languages
|
includes/frontend/notice/base-notice.php
CHANGED
@@ -56,9 +56,9 @@ abstract class Base_Notice {
|
|
56 |
if ( static::is_amp() ) {
|
57 |
return;
|
58 |
}
|
59 |
-
wp_enqueue_script( WPAUTOTERMS_SLUG . '
|
60 |
array( 'jquery', 'wp-util', WPAUTOTERMS_JS_BASE ), WPAUTOTERMS_VERSION, true );
|
61 |
-
wp_localize_script( WPAUTOTERMS_SLUG . '
|
62 |
$this->_localize_args() );
|
63 |
}
|
64 |
|
56 |
if ( static::is_amp() ) {
|
57 |
return;
|
58 |
}
|
59 |
+
wp_enqueue_script( WPAUTOTERMS_SLUG . '_js_' . $this->id(), WPAUTOTERMS_PLUGIN_URL . 'js/wpautoterms.js',
|
60 |
array( 'jquery', 'wp-util', WPAUTOTERMS_JS_BASE ), WPAUTOTERMS_VERSION, true );
|
61 |
+
wp_localize_script( WPAUTOTERMS_SLUG . '_js_' . $this->id(), 'wpautoterms_js_' . $this->id(),
|
62 |
$this->_localize_args() );
|
63 |
}
|
64 |
|
js/wpautoterms.js
CHANGED
@@ -129,8 +129,10 @@ wpAutoTermsDomReady(function ($) {
|
|
129 |
}
|
130 |
|
131 |
function closeCookieNotice() {
|
132 |
-
|
133 |
-
|
|
|
|
|
134 |
var entries = document.querySelectorAll("." + wpautoterms_js_cookies_notice.class);
|
135 |
for (var k = 0; k < entries.length; ++k) {
|
136 |
var el = entries[k];
|
129 |
}
|
130 |
|
131 |
function closeCookieNotice() {
|
132 |
+
if (typeof wpautoterms_js_cookies_notice === "undefined") {
|
133 |
+
return;
|
134 |
+
}
|
135 |
+
if (!wpautoterms_js_cookies_notice.disable && getCookie(wpautoterms_js_cookies_notice.cookie_name) != 1) {
|
136 |
var entries = document.querySelectorAll("." + wpautoterms_js_cookies_notice.class);
|
137 |
for (var k = 0; k < entries.length; ++k) {
|
138 |
var el = entries[k];
|