Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unserialize $cart_details passed to functions hooked to edd_complete_download_purchase #9685

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

goncalovf
Copy link

Fixes #9684

edd_get_order_item_meta() is called without defining
a metakey, which in turn uses get_metadata() to get
all the order's metadata. When a metakey is not set
in get_metadata(), WordPress doesn't unserialize
the data (see last portion of get_metadata_raw()).
@sonarcloud
Copy link

sonarcloud bot commented Oct 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$cart_details array passed in edd_complete_download_purchase hook is not unserialized
1 participant