From 8e071f3ea05fa71c90d8cac57c2a30cb7a9b768a Mon Sep 17 00:00:00 2001 From: mtworoz Date: Mon, 16 Dec 2024 14:35:37 +0100 Subject: [PATCH] cast int --- includes/cart/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/cart/functions.php b/includes/cart/functions.php index 662d80c6e8..dbb6d1e3d6 100644 --- a/includes/cart/functions.php +++ b/includes/cart/functions.php @@ -133,6 +133,7 @@ function edd_get_cart_quantity() { * @return string Cart key of the new item */ function edd_add_to_cart( $download_id, $options = array() ) { + $download_id = (int)$download_id; $download = get_post( $download_id ); if (!$download) {