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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/payments/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function edd_complete_purchase( $order_id, $new_status, $old_status ) {
if ( ! empty( $order_item_meta ) ) {
foreach ( $order_item_meta as $item_meta_key => $item_meta_value ) {
if ( '_option_' === substr( $item_meta_key, 0, 8 ) && isset( $item_meta_value[0] ) ) {
$item_options[ str_replace( '_option_', '', $item_meta_key ) ] = $item_meta_value[0];
$item_options[ str_replace( '_option_', '', $item_meta_key ) ] = maybe_unserialize( $item_meta_value[0] );
}
}
}
Expand Down