Skip to content

Commit

Permalink
Don't send POST request on every page load, 1.2.8
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
raikasdev committed May 10, 2024
1 parent 732230b commit 299337d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.2.8: 2024-05-10

* Don't send consent POST request with every request (issue #2)

### 1.2.7: 2024-03-14

* Add index for the database if it does not exist
Expand Down
4 changes: 2 additions & 2 deletions air-cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Air cookie
* Plugin URI: https://github.com/digitoimistodude/air-cookie
* Description: Simple cookie banner and management.
* Version: 1.2.7
* Version: 1.2.8
* Author: Digitoimisto Dude Oy
* Author URI: https://www.dude.fi
* Requires at least: 5.5
Expand All @@ -27,7 +27,7 @@
* @since 0.1.0
*/
function get_plugin_version() {
return 124;
return 128;
} // end plugin_version

/**
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"plugin"
],
"license": "GPL-3.0+",
"version": "1.2.7",
"version": "1.2.8",
"authors": [
{
"name": "Timi Wahalahti",
Expand All @@ -35,4 +35,4 @@
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/php-compatibility": "*"
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "air-cookie",
"version": "1.2.7",
"version": "1.2.8",
"description": "Simple cookie banner and management.",
"main": "air-cookie.php",
"dependencies": {},
Expand All @@ -18,4 +18,4 @@
"url": "https://github.com/digitoimistodude/air-cookie/issues"
},
"homepage": "https://github.com/digitoimistodude/air-cookie"
}
}
6 changes: 3 additions & 3 deletions script-injection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/**
* @Author: Timi Wahalahti
* @Date: 2021-09-07 17:00:04
* @Last Modified by: Roni Laukkarinen
* @Last Modified time: 2024-02-20 16:32:36
* @Last Modified by: Roni Äikäs
* @Last Modified time: 2024-05-10 16:52:56
* @package air-cookie
*/

Expand Down Expand Up @@ -52,7 +52,7 @@ function inject_js() {

<?php // Allow adding category specific javascript to be runned when the category is accepted.
if ( ! empty( $cookie_categories ) && is_array( $cookie_categories ) ) : ?>
airCookieSettings.onAccept = function() {
airCookieSettings.onFirstAction = function() {
airCookierecordConsent();

<?php foreach ( $cookie_categories as $cookie_category ) {
Expand Down

0 comments on commit 299337d

Please sign in to comment.