Skip to content

Commit

Permalink
Critical bug fix: unique ID
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Apr 5, 2021
1 parent a022ca0 commit fa4e110
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Sell Event Tickets on any post
* Tags: tickets, events, WordPress
* Requires at least: 4.7
* Tested up to: 5.7
* Stable tag: `1.8.23`
* Stable tag: `1.8.24`
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
4 changes: 2 additions & 2 deletions src/mt-button.php
Original file line number Diff line number Diff line change
Expand Up @@ -799,9 +799,9 @@ function mt_set_user_unique_id() {
'httponly' => true,
'samesite' => 'Lax',
);
setcookie( 'mt_unique_id', 'true', $options );
setcookie( 'mt_unique_id', $unique_id, $options );
} else {
setcookie( 'mt_unique_id', 'true', time() + 60 * 60 * 24 * 7, SITECOOKIEPATH, COOKIE_DOMAIN, false, true );
setcookie( 'mt_unique_id', $unique_id, time() + 60 * 60 * 24 * 7, SITECOOKIEPATH, COOKIE_DOMAIN, false, true );
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/my-tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* License: GPL-2.0+
* License URI: http://www.gnu.org/license/gpl-2.0.txt
* Domain Path: lang
* Version: 1.8.23
* Version: 1.8.24
*/

/*
Expand Down Expand Up @@ -46,7 +46,7 @@
* @return string Current My Tickets version.
*/
function mt_get_current_version() {
$mt_version = '1.8.23';
$mt_version = '1.8.24';

return $mt_version;
}
Expand Down
6 changes: 5 additions & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tested up to: 5.7
Requires PHP: 5.6
License: GPLv2 or later
Text domain: my-tickets
Stable tag: 1.8.23
Stable tag: 1.8.24

My Tickets is an simple, flexible platform for selling event tickets with WordPress.

Expand Down Expand Up @@ -66,6 +66,10 @@ Read the <a href="http://docs.joedolson.com/my-tickets/">online documentation</a

== Changelog ==

= 1.8.24 =

* Critical bug fix: error in unique ID cookie setting.

= 1.8.23 =

* Improved bug fix for removing events when ticket counts set to 0.
Expand Down

0 comments on commit fa4e110

Please sign in to comment.