Devin Price has reported that discount codes are not having their uses recorded correctly.
该提问来源于开源项目:easydigitaldownloads/easy-digital-downloads
Devin Price has reported that discount codes are not having their uses recorded correctly.
该提问来源于开源项目:easydigitaldownloads/easy-digital-downloads
I've determined that the bug has to do with the edd_get_discount_id_by_code() function. For some reason, the foreach() loop never finds a code that matches. The $code parameter that is passed definitely contains the correct code, and all discounts are retrieved correctly. I've manually compared the passed $code to all retrieved codes, and as far as I can tell, there should be a match, but it's failing.