Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Wordpress plugin for tawk.to",
"type": "project",
"license": "GPL-3.0",
"version": "0.9.3",
"version": "0.9.4",
"require": {
"tawk/url-utils": "2.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tawk-wordpress",
"version": "0.9.3",
"version": "0.9.4",
Comment thread
eug-L marked this conversation as resolved.
Resolved
"description": "tawk.to wordpress plugin",
"main": "index.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions tawkto/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: tawkto
Tags: tawk.to,tawk,free live chat,ai chat,chat widget
Requires at least: 2.7
Requires PHP: 5.6
Tested up to: 6.9
Stable tag: 0.9.3
Tested up to: 7.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Tests can check another version

The PR declares WordPress 7.1 support and says tests should be pinned to that version, but the test setup still uses wordpress:latest and runs wp core update. Repeat runs can therefore check a different WordPress version without any repository change. Pin both the image and the setup script to 7.1 so tests consistently check the release named here.

Prompt To Fix With AI
This is a comment left during a code review.
Path: tawkto/readme.txt
Line: 6

Comment:
**Tests can check another version**

The PR declares WordPress 7.1 support and says tests should be pinned to that version, but the test setup still uses `wordpress:latest` and runs `wp core update`. Repeat runs can therefore check a different WordPress version without any repository change. Pin both the image and the setup script to 7.1 so tests consistently check the release named here.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Claude Code Fix in Cursor Fix in Codex

Stable tag: 0.9.4
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
2 changes: 1 addition & 1 deletion tawkto/tawkto.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin Name: Tawk.to Live Chat
* Plugin URI: https://www.tawk.to
* Description: Embeds Tawk.to live chat widget to your site
* Version: 0.9.3
* Version: 0.9.4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Updating clears saved keys

Bumping the plugin version makes sites with a saved tawkto-version of 0.9.3 run old upgrades again. TawkToUpgradeManager::start() checks each upgrade against the new version, but not the saved version. This reruns TawkToUpgradeVersion090::upgrade(), which replaces the saved js_api_key with an empty string. Sites that configured Secure Mode lose their key after updating.

Skip upgrades that already ran and save the current plugin version when finished.

Prompt To Fix With AI
This is a comment left during a code review.
Path: tawkto/tawkto.php
Line: 9

Comment:
**Updating clears saved keys**

Bumping the plugin version makes sites with a saved `tawkto-version` of `0.9.3` run old upgrades again. `TawkToUpgradeManager::start()` checks each upgrade against the new version, but not the saved version. This reruns `TawkToUpgradeVersion090::upgrade()`, which replaces the saved `js_api_key` with an empty string. Sites that configured Secure Mode lose their key after updating.

Skip upgrades that already ran and save the current plugin version when finished.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Claude Code Fix in Cursor Fix in Codex

* Author: Tawkto
* Text Domain: tawk-to-live-chat
* License: GPLv3
Expand Down
4 changes: 2 additions & 2 deletions tawkto/templates/widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

?>

<!--Start of Tawk.to Script (0.9.3)-->
<!--Start of Tawk.to Script (0.9.4)-->
<script id="tawk-script" type="text/javascript">
var Tawk_API = Tawk_API || {};
<?php if ( isset( $customer_details ) && $enable_visitor_recognition ) : ?>
Expand All @@ -24,5 +24,5 @@
s0.parentNode.insertBefore( s1, s0 );
})();
</script>
<!--End of Tawk.to Script (0.9.3)-->
<!--End of Tawk.to Script (0.9.4)-->

Loading