v1.8.5
Fixes a fault in 1.8.4 that could short-change a buyer. Update if you sell gallery access.
Fixed
- Buying two lengths of access in one go granted only one of them. A buyer could put, say, seven days and ninety days in the basket together and pay for both, and only the first was counted: they were charged for ninety-seven days and given seven. Access was being recorded against the order rather than against each thing bought, so the second line was quietly dropped. Both are now counted. Access already granted is unaffected, and a refund still takes back only what that order paid for.
- Filling in an access length for the very first time did not update the products already selling it, so the unlock button could advertise one length while the checkout named another. Setting a length for the first time and changing an existing one now both bring the products back in step. WordPress fires a different hook when an option is created than when it is changed, and only the second was being listened for.