You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b89c82d
Browse filesBrowse the repository at this point in the historyBrowse files
Hai Zheng
committed
v7.9.2-rc1: * **3rd** WCML: guests in the shop currency now use the default cache, and the crawler warms it. (#1057)
Copy file name to clipboardExpand all lines: readme.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,7 @@ Please don't report a suspected vulnerability in this support forum. Reporting d
286
286
* **Task** Isolated asynchronous tokens by job type, used constant-time validation, and excluded tokens from logs.
287
287
* **Purge** Corrected unpublished-post and empty-archive purges, preserved encoded paths, and prevented site cron from flushing shared backends.
288
288
* **3rd** Corrected WooCommerce and NextGEN purges, protected unvaried cart responses, and validated bulk-edit and WCML settings permissions.
289
+
* **3rd** WCML: guests in the shop currency now use the default cache, and the crawler warms it. (#1057)
289
290
* **Core** Hardened file writes, admin output and static asset headers, replaced React and Babel with plain jQuery/JavaScript forms, and improved installation, upgrade and uninstall handling.
290
291
* **Localization** Validated resource patterns while preserving comments, limited remote JavaScript downloads to 10 seconds, cleaned failed downloads, and restored HTTPS fallback redirects.
Copy file name to clipboardExpand all lines: thirdparty/wcml.cls.php
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,8 @@ public static function apply_vary( $vary_list ) {
113
113
/**
114
114
* Inject the WCML vary row into the crawler cookie list.
115
115
*
116
+
* A currency that needs no vary cookie (the shop currency without location mode, Guest Mode off) maps to `_null`, so the crawler also runs it cookie-less.
117
+
*
116
118
* @since 7.9
117
119
* @access public
118
120
* @param mixed $cookies Crawler cookie list.
@@ -131,6 +133,11 @@ public static function inject_vary_row( $cookies ) {
131
133
132
134
$vals = [];
133
135
foreach ($selectedas$code) {
136
+
if (self::_is_cookieless($code)) {
137
+
$vals[] = '_null';
138
+
continue;
139
+
}
140
+
// A false hash here is a HASH failure or LITESPEED_GUEST bypass, never proof of no vary: skip it.
134
141
$h = self::_vary_hash($code);
135
142
if (!empty($h)) {
136
143
$vals[] = $h;
@@ -154,9 +161,14 @@ public static function inject_vary_row( $cookies ) {
0 commit comments