Skip to content

Commit

Permalink
fix cookie expiry date saving, bump version to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timiwahalahti committed Oct 7, 2021
1 parent 928dce4 commit 531c9b1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [1.1.1] - 2021-10-07

### Fixed
- Cookie expiry time saving

## [1.1.0] - 2021-10-07

### Added
Expand Down
6 changes: 3 additions & 3 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.1.0
* Version: 1.1.1
* Author: Digitoimisto Dude Oy, Timi Wahalahti
* Author URI: https://www.dude.fi
* Requires at least: 5.5
Expand All @@ -14,7 +14,7 @@
* @Author: Timi Wahalahti
* @Date: 2021-08-10 10:49:07
* @Last Modified by: Timi Wahalahti
* @Last Modified time: 2021-10-07 12:57:52
* @Last Modified time: 2021-10-07 13:10:21
* @package air-cookie
*/

Expand All @@ -31,7 +31,7 @@
* @since 0.1.0
*/
function get_plugin_version() {
return 110;
return 111;
} // end plugin_version

/**
Expand Down
2 changes: 1 addition & 1 deletion 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.1.0",
"version": "1.1.1",
"authors": [{
"name": "Timi Wahalahti",
"email": "timi@dude.fi",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "air-cookie",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple cookie banner and management.",
"main": "air-cookie.php",
"dependencies": {},
Expand Down
5 changes: 4 additions & 1 deletion rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: Timi Wahalahti
* @Date: 2021-09-07 16:56:00
* @Last Modified by: Timi Wahalahti
* @Last Modified time: 2021-10-07 12:45:47
* @Last Modified time: 2021-10-07 13:10:12
* @package air-cookie
*/

Expand Down Expand Up @@ -36,6 +36,9 @@ function record_consent( $request ) {
// Get database table name.
$table_name = get_databse_table_name();

// Get cookie consent settings.
$settings = get_settings();

// Serialize the cookie levels for storage.
$cookie_value = maybe_serialize( $data->level );

Expand Down

0 comments on commit 531c9b1

Please sign in to comment.