$cart_details
array passed in edd_complete_download_purchase
hook is not unserialized
#9684
Labels
type-bug
workflow-needs-replication
workflow-pending-triage
Items that need to be triaged and reviewed before they are worked on.
Bug Report
Expected behavior
The
$cart_details
array passed to functions that hook intoedd_complete_download_purchase
(an action done inedd_complete_purchase()
) should have all of its values unserialized. A few of its values aren't, though.This is happening because
edd_get_order_item_meta()
is called without defining a metakey. When a metakey is not set inget_metadata()
(which is called byedd_get_order_item_meta()
), WordPress doesn't unserialize the data (see last portion ofget_metadata_raw()
).Actual behavior
The
$cart_details
array passed to functions hooked intoedd_complete_download_purchase
should be deeply unserialized.Steps to reproduce the behavior
$cart_details
intoedd_complete_download_purchase
and see what's outputted. You can use the following output function:Information (if a specific version is affected):
EDD Version (or branch): 3.2.3
WordPress Version: 6.3.1
Any other relevant information:
Happens in the Pro plugin as well.
The text was updated successfully, but these errors were encountered: