Commit d764e44
committed
fix(rest): return full checksum string for JS tracker compatibility
The REST handler was stripping the checksum and returning only the bare
numeric ID. The JS tracker stores the response as params.id and sends
it back on subsequent requests (events, consent upgrade), where
Utils::getValueWithoutChecksum() requires the full "<id>.<hash>" format.
Also applies Yoda conditions per WP coding standards, removes redundant
conditional assertion in fallback test, and strengthens REST response
test to validate checksum format.1 parent 051c799 commit d764e44
File tree
2 files changed
+15
-10
lines changed- src/Controllers/Rest
- tests/e2e
2 files changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
| 148 | + | |
150 | 149 | | |
151 | | - | |
152 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| |||
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 340 | + | |
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
| |||
0 commit comments