Commit dfbde56
committed
Update only the expiration field of the token
Because WP_Session_Tokens::update() overwrites the entire session object
in its datastore, the previous code was wiping out fields like IP
address and original login date as well as any custom data attached to
the token. This reads the original token data array so that only the exp
field is updated.1 parent dcc7258 commit dfbde56
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
609 | 615 | | |
610 | 616 | | |
611 | 617 | | |
| |||
0 commit comments