diff --git a/CHANGELOG.md b/CHANGELOG.md index b64675f383..ab3f38dd7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ v3.24.0 - 2018-09-?? ##### Bug fixes ++ When an order is deleted, all order transactions will also be deleted. This does not happen until the order is deleted (transactions will remain while the order is in the trash) + Fixed an issue causing duplicated quizzes to initially show images for question images & image choices (reorder pictures & picture choice) but the image data would not be properly saved so when returning to the builder or viewing a quiz on the frontend the images would be lost diff --git a/includes/class.llms.post.relationships.php b/includes/class.llms.post.relationships.php index 7ec038fd83..466162ae08 100644 --- a/includes/class.llms.post.relationships.php +++ b/includes/class.llms.post.relationships.php @@ -1,10 +1,10 @@ array( + array( + 'action' => 'delete', + 'meta_key' => '_llms_order_id', + 'post_type' => 'llms_transaction', + ), + ), + 'llms_quiz' => array( array( 'action' => 'delete', // delete = force delete; trash = move to trash