From 720be24cb485ddef943637341ab214348459386d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Figueiredo?= Date: Mon, 23 Oct 2023 17:36:08 +0100 Subject: [PATCH] Fix mismatch between pricing variations and download --- includes/class-edd-download.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-edd-download.php b/includes/class-edd-download.php index acdff453f4..79359d30e2 100644 --- a/includes/class-edd-download.php +++ b/includes/class-edd-download.php @@ -602,8 +602,8 @@ public function get_variable_priced_bundled_downloads( $price_id = null ) { $price_assignments = $price_assignments[0]; foreach ( $price_assignments as $key => $value ) { - if ( isset( $bundled_downloads[ $key ] ) && ( $value == $price_id || $value == 'all' ) ) { - $downloads[] = $bundled_downloads[ $key ]; + if ( isset( $bundled_downloads[ $key - 1 ] ) && ( $value == $price_id || $value == 'all' ) ) { + $downloads[] = $bundled_downloads[ $key - 1 ]; } }