updated plugin Easy Digital Downloads version 3.1.2

This commit is contained in:
2023-06-28 12:45:44 +00:00
committed by Gitium
parent 44df590080
commit f710fa7de2
120 changed files with 5556 additions and 3347 deletions

View File

@ -58,7 +58,7 @@ add_action( 'template_redirect', 'edd_process_cart_endpoints', 100 );
*/
function edd_process_add_to_cart( $data ) {
$download_id = ! empty( $data['download_id'] ) ? absint( $data['download_id'] ) : false;
$options = isset( $data['edd_options'] ) ? $data['edd_options'] : array();
$options = isset( $data['edd_options'] ) ? (array) $data['edd_options'] : array();
if ( ! empty( $data['edd_download_quantity'] ) ) {
$options['quantity'] = absint( $data['edd_download_quantity'] );