Commit 6172a05
Fix: free trial lost on abandoned WooCommerce checkout
has_trialed() was counting pending memberships (created before payment)
as consumed trials. Any abandoned checkout permanently blocked future
trials for the customer with no error message.
Also prevent ghost "pending payment" popups from surfacing for
pending/cancelled memberships in check_pending_payments() and
render_pending_payments().
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 18c9c97 commit 6172a05
File tree
2 files changed
+27
-0
lines changed- inc
- managers
- models
2 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| |||
236 | 246 | | |
237 | 247 | | |
238 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
239 | 253 | | |
240 | 254 | | |
241 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
401 | 413 | | |
402 | 414 | | |
403 | 415 | | |
404 | 416 | | |
| 417 | + | |
405 | 418 | | |
406 | 419 | | |
407 | 420 | | |
| |||
0 commit comments