Version Description
Download this release
Release Info
Developer | wpautoterms |
Plugin | Auto Terms of Service and Privacy Policy |
Version | 2.1.5 |
Comparing to | |
See all releases |
Code changes from version 2.1.4 to 2.1.5
- auto-terms-of-service-privacy-policy.php +1 -1
- includes/admin/action/send-message.php +4 -3
- includes/upgrade.php +1 -1
- js/settings.js +0 -63
- readme.txt +5 -1
auto-terms-of-service-privacy-policy.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wpautoterms.com
|
|
5 |
Description: Create Privacy Policy (Simple or GDPR), Terms & Conditions, Disclaimers and more. Compliance Kits to help you be compliant with the law.
|
6 |
Author: WP AutoTerms
|
7 |
Author URI: https://wpautoterms.com
|
8 |
-
Version: 2.1.
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: wpautoterms
|
11 |
Domain Path: /languages
|
5 |
Description: Create Privacy Policy (Simple or GDPR), Terms & Conditions, Disclaimers and more. Compliance Kits to help you be compliant with the law.
|
6 |
Author: WP AutoTerms
|
7 |
Author URI: https://wpautoterms.com
|
8 |
+
Version: 2.1.5
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: wpautoterms
|
11 |
Domain Path: /languages
|
includes/admin/action/send-message.php
CHANGED
@@ -35,11 +35,12 @@ class Send_Message extends Action_Base {
|
|
35 |
return $x['Name'] . ': ' . $x['Version'] . ' (' . $x['PluginURI'] . ')';
|
36 |
}, get_plugins() );
|
37 |
|
|
|
|
|
38 |
return array(
|
39 |
static::SITE_INFO_NONE => '',
|
40 |
-
static::SITE_INFO_SHORT =>
|
41 |
-
static::SITE_INFO_EXTENDED =>
|
42 |
-
"\nPHP extensions:\n" . join( "\n", $ext ) .
|
43 |
"\nWP version: " . $wp_version . "\nWPDB version: " . $wp_db_version .
|
44 |
"\nWP plugins:\n" . join( "\n", $plugins ),
|
45 |
);
|
35 |
return $x['Name'] . ': ' . $x['Version'] . ' (' . $x['PluginURI'] . ')';
|
36 |
}, get_plugins() );
|
37 |
|
38 |
+
$prefix = 'Plugin version: ' . WPAUTOTERMS_VERSION . "\nPHP version: " . phpversion();
|
39 |
+
|
40 |
return array(
|
41 |
static::SITE_INFO_NONE => '',
|
42 |
+
static::SITE_INFO_SHORT => $prefix . "\nWP version: " . $wp_version . "\nWPDB version: " . $wp_db_version,
|
43 |
+
static::SITE_INFO_EXTENDED => $prefix . "\nPHP extensions:\n" . join( "\n", $ext ) .
|
|
|
44 |
"\nWP version: " . $wp_version . "\nWPDB version: " . $wp_db_version .
|
45 |
"\nWP plugins:\n" . join( "\n", $plugins ),
|
46 |
);
|
includes/upgrade.php
CHANGED
@@ -8,7 +8,7 @@ use wpautoterms\admin\page\Legacy_Settings;
|
|
8 |
|
9 |
class Upgrade {
|
10 |
public function __construct() {
|
11 |
-
add_action( '
|
12 |
}
|
13 |
|
14 |
public function run() {
|
8 |
|
9 |
class Upgrade {
|
10 |
public function __construct() {
|
11 |
+
add_action( 'init', array( $this, 'run' ) );
|
12 |
}
|
13 |
|
14 |
public function run() {
|
js/settings.js
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function () {
|
2 |
-
var COUNTRIES = jQuery("[data-type='country-selector']");
|
3 |
-
var LOCALES = [COUNTRIES.data('locale').split("_")[0]];
|
4 |
-
var savedOptions = {};
|
5 |
-
var selectedCountry = COUNTRIES.val();
|
6 |
-
|
7 |
-
function sortSelect(selector, languages) {
|
8 |
-
var el = jQuery(selector);
|
9 |
-
var selected = el.val();
|
10 |
-
var options = el.find("option");
|
11 |
-
var arr = options.map(function (idx, x) {
|
12 |
-
return [[x.innerText, x.value]];
|
13 |
-
}).get();
|
14 |
-
arr.sort(function (x, y) {
|
15 |
-
return x[0].localeCompare(y[0], languages);
|
16 |
-
});
|
17 |
-
|
18 |
-
options.each(function (idx, x) {
|
19 |
-
x.value = arr[idx][1];
|
20 |
-
x.innerText = arr[idx][0];
|
21 |
-
});
|
22 |
-
el.val(selected);
|
23 |
-
}
|
24 |
-
|
25 |
-
var stateInput = jQuery("[data-type='state-selector']");
|
26 |
-
var STATE_ROW = stateInput.parent().parent();
|
27 |
-
savedOptions[selectedCountry] = stateInput.val();
|
28 |
-
stateInput.parent().html(wp.template("wpautoterms-state-selector")({
|
29 |
-
name: stateInput.attr("name"),
|
30 |
-
id: stateInput.attr("id")
|
31 |
-
}));
|
32 |
-
stateInput = jQuery("[data-type='state-selector']");
|
33 |
-
|
34 |
-
function updateStates() {
|
35 |
-
var states = wpautotermsStates.states[COUNTRIES.val()];
|
36 |
-
var state = stateInput.val();
|
37 |
-
if (state !== null) {
|
38 |
-
savedOptions[selectedCountry] = stateInput.val();
|
39 |
-
}
|
40 |
-
if (states.length < 1) {
|
41 |
-
STATE_ROW.hide();
|
42 |
-
stateInput.html("");
|
43 |
-
stateInput.val("");
|
44 |
-
return;
|
45 |
-
}
|
46 |
-
STATE_ROW.show();
|
47 |
-
var options = states.map(function (x) {
|
48 |
-
return '<option value="' + x + '">' + wpautotermsStates.translations[x] + '</option>';
|
49 |
-
});
|
50 |
-
selectedCountry = COUNTRIES.val();
|
51 |
-
stateInput.html(options.join("\n"));
|
52 |
-
sortSelect(stateInput, LOCALES);
|
53 |
-
if (Object.keys(savedOptions).indexOf(selectedCountry) >= 0) {
|
54 |
-
stateInput.val(savedOptions[selectedCountry]);
|
55 |
-
} else {
|
56 |
-
stateInput.val(stateInput.find("option:first").val());
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
sortSelect(COUNTRIES, LOCALES);
|
62 |
-
COUNTRIES.change(updateStates).trigger("change");
|
63 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, privacy policy, terms and conditions, terms of service, terms of use
|
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 4.9.7
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPL version 3 or any later version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -113,6 +113,10 @@ Installing the plugin is easy. Just follow these steps:
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
116 |
= Version 2.1.4 =
|
117 |
* Aug 23, 2018
|
118 |
* Various bugfixes
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 4.9.7
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 2.1.5
|
8 |
License: GPL version 3 or any later version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= Version 2.1.5 =
|
117 |
+
* Aug 25, 2018
|
118 |
+
* Bugfix for legal page slug
|
119 |
+
|
120 |
= Version 2.1.4 =
|
121 |
* Aug 23, 2018
|
122 |
* Various bugfixes
|