Easy Digital Downloads - Version 2.9.12

Version Description

Download this release

Release Info

Developer cklosows
Plugin Icon 128x128 Easy Digital Downloads
Version 2.9.12
Comparing to
See all releases

Code changes from version 2.9.11 to 2.9.12

assets/js/edd-ajax.js CHANGED
@@ -437,7 +437,7 @@ jQuery(document).ready(function ($) {
437
  field_name = 'edd_address_state';
438
  }
439
 
440
- var state_inputs = document.getElementById('card_state');
441
 
442
  // If the country is being changed, and there is a state field being shown...
443
  if( 'card_state' != $this.attr('id') && null != state_inputs ) {
@@ -468,7 +468,7 @@ jQuery(document).ready(function ($) {
468
  var state_inputs = 'input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';
469
 
470
  if( 'nostates' == $.trim(response) ) {
471
- var text_field = '<input type="text" name="card_state" class="card-state edd-input required" value=""/>';
472
  $form.find(state_inputs).replaceWith( text_field );
473
  } else {
474
  $form.find(state_inputs).replaceWith( response );
437
  field_name = 'edd_address_state';
438
  }
439
 
440
+ var state_inputs = document.getElementById(field_name );
441
 
442
  // If the country is being changed, and there is a state field being shown...
443
  if( 'card_state' != $this.attr('id') && null != state_inputs ) {
468
  var state_inputs = 'input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';
469
 
470
  if( 'nostates' == $.trim(response) ) {
471
+ var text_field = '<input type="text" id=' + field_name + ' name="card_state" class="card-state edd-input required" value=""/>';
472
  $form.find(state_inputs).replaceWith( text_field );
473
  } else {
474
  $form.find(state_inputs).replaceWith( response );
assets/js/edd-ajax.min.js CHANGED
@@ -1 +1 @@
1
- var edd_scripts;function edd_load_gateway(payment_mode){jQuery(".edd-cart-ajax").show(),jQuery("#edd_purchase_form_wrap").html('<span class="edd-loading-ajax edd-loading"></span>');var nonce=jQuery("#edd-gateway-"+payment_mode).data(payment_mode+"-nonce"),url=edd_scripts.ajaxurl;0<url.indexOf("?")?url+="&":url+="?",url=url+"payment-mode="+payment_mode,jQuery.post(url,{action:"edd_load_gateway",edd_payment_mode:payment_mode,nonce:nonce},function(response){jQuery("#edd_purchase_form_wrap").html(response),jQuery(".edd-no-js").hide(),jQuery("body").trigger("edd_gateway_loaded",[payment_mode])})}jQuery(document).ready(function($){if($(".edd-no-js").hide(),$("a.edd-add-to-cart").addClass("edd-has-js"),$(document.body).on("click.eddRemoveFromCart",".edd-remove-from-cart",function(event){var $this=$(this),item=$this.data("cart-item"),action=$this.data("action"),id=$this.data("download-id"),nonce=$this.data("nonce"),data={action:action,cart_item:item,nonce:nonce};return $.ajax({type:"POST",data:data,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(response){if(response.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(item,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;$(".edd-cart").each(function(){$(this).find("[data-cart-item='"+item+"']").parent().remove()}),$(".edd-cart").each(function(){var cart_item_counter=0;$(this).find("[data-cart-item]").each(function(){$(this).attr("data-cart-item",cart_item_counter),cart_item_counter+=1})}),$("[id^=edd_purchase_"+id+"]").length&&($("[id^=edd_purchase_"+id+"] .edd_go_to_checkout").hide(),$("[id^=edd_purchase_"+id+"] a.edd-add-to-cart").show().removeAttr("data-edd-loading"),"1"==edd_scripts.quantities_enabled&&$("[id^=edd_purchase_"+id+"] .edd_download_quantity_wrapper").show()),$("span.edd-cart-quantity").text(response.cart_quantity),$(document.body).trigger("edd_quantity_updated",[response.cart_quantity]),edd_scripts.taxes_enabled&&($(".cart_item.edd_subtotal span").html(response.subtotal),$(".cart_item.edd_cart_tax span").html(response.tax)),$(".cart_item.edd_total span").html(response.total),0==response.cart_quantity&&($(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),$(".edd-cart").each(function(){var cart_wrapper=$(this).parent();cart_wrapper&&(cart_wrapper.addClass("cart-empty"),cart_wrapper.removeClass("cart-not-empty")),$(this).append('<li class="cart_item empty">'+edd_scripts.empty_cart_message+"</li>")})),$(document.body).trigger("edd_cart_item_removed",[response])}}}).fail(function(response){window.console&&window.console.log&&console.log(response)}).done(function(response){}),!1}),$(document.body).on("click.eddAddToCart",".edd-add-to-cart",function(e){e.preventDefault();var $this=$(this),form=$this.closest("form");$this.prop("disabled",!0);$this.find(".edd-loading");var container=$this.closest("div");$this.attr("data-edd-loading","");form=$this.parents("form").last();var download=$this.data("download-id"),variable_price=$this.data("variable-price"),price_mode=$this.data("price-mode"),nonce=$this.data("nonce"),item_price_ids=[],free_items=!0;if("yes"==variable_price)if(0<form.find(".edd_price_option_"+download+'[type="hidden"]').length)item_price_ids[0]=$(".edd_price_option_"+download,form).val(),form.find(".edd-submit").data("price")&&0<form.find(".edd-submit").data("price")&&(free_items=!1);else{if(!form.find(".edd_price_option_"+download+":checked",form).length)return $this.removeAttr("data-edd-loading"),alert(edd_scripts.select_option),e.stopPropagation(),$this.prop("disabled",!1),!1;form.find(".edd_price_option_"+download+":checked",form).each(function(index){if(item_price_ids[index]=$(this).val(),!0===free_items){var item_price=$(this).data("price");item_price&&0<item_price&&(free_items=!1)}})}else item_price_ids[0]=download,$this.data("price")&&0<$this.data("price")&&(free_items=!1);if(free_items&&form.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"==form.find(".edd_action_input").val())return form.submit(),!0;var data={action:$this.data("action"),download_id:download,price_ids:item_price_ids,post_data:$(form).serialize(),nonce:nonce};return $.ajax({type:"POST",data:data,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(response){var store_redirect="1"==edd_scripts.redirect_to_checkout,item_redirect="1"==form.find("#edd_redirect_to_checkout").val();if(store_redirect&&item_redirect||!store_redirect&&item_redirect)window.location=edd_scripts.checkout_page;else{"1"===edd_scripts.taxes_enabled&&($(".cart_item.edd_subtotal").show(),$(".cart_item.edd_cart_tax").show()),$(".cart_item.edd_total").show(),$(".cart_item.edd_checkout").show(),$(".cart_item.empty").length&&$(".cart_item.empty").hide(),$(".widget_edd_cart_widget .edd-cart").each(function(cart){var target=$(this).find(".edd-cart-meta:first");$(response.cart_item).insertBefore(target);var cart_wrapper=$(this).parent();cart_wrapper&&(cart_wrapper.addClass("cart-not-empty"),cart_wrapper.removeClass("cart-empty"))}),"1"===edd_scripts.taxes_enabled&&($(".edd-cart-meta.edd_subtotal span").html(response.subtotal),$(".edd-cart-meta.edd_cart_tax span").html(response.tax)),$(".edd-cart-meta.edd_total span").html(response.total);$(".edd-cart-item-title",response.cart_item).length;if($("span.edd-cart-quantity").each(function(){$(this).text(response.cart_quantity),$(document.body).trigger("edd_quantity_updated",[response.cart_quantity])}),"none"==$(".edd-cart-number-of-items").css("display")&&$(".edd-cart-number-of-items").show("slow"),"no"!=variable_price&&"multi"==price_mode||($("a.edd-add-to-cart",container).toggle(),$(".edd_go_to_checkout",container).css("display","inline-block")),"multi"==price_mode&&$this.removeAttr("data-edd-loading"),$(".edd_download_purchase_form").length&&("no"==variable_price||!form.find(".edd_price_option_"+download).is("input:hidden"))){var parent_form=$('.edd_download_purchase_form *[data-download-id="'+download+'"]').parents("form");$("a.edd-add-to-cart",parent_form).hide(),"multi"!=price_mode&&parent_form.find(".edd_download_quantity_wrapper").slideUp(),$(".edd_go_to_checkout",parent_form).show().removeAttr("data-edd-loading")}"incart"!=response&&($(".edd-cart-added-alert",container).fadeIn(),setTimeout(function(){$(".edd-cart-added-alert",container).fadeOut()},3e3)),$this.prop("disabled",!1),$(document.body).trigger("edd_cart_item_added",[response])}}}).fail(function(response){window.console&&window.console.log&&console.log(response)}).done(function(response){}),!1}),$("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",function(){var $this=$(this),data={action:$this.data("action"),nonce:$this.data("nonce")};return $(".edd-cart-ajax").show(),$.post(edd_scripts.ajaxurl,data,function(checkout_response){$("#edd_checkout_login_register").html(edd_scripts.loading),$("#edd_checkout_login_register").html(checkout_response),$(".edd-cart-ajax").hide()}),!1}),$(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",function(e){e.preventDefault();var complete_purchase_val=$(this).val();$(this).val(edd_global_vars.purchase_loading),$(this).after('<span class="edd-loading-ajax edd-loading"></span>');var data={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:$("#edd_login_fields #edd_user_login").val(),edd_user_pass:$("#edd_login_fields #edd_user_pass").val(),edd_login_nonce:$("#edd_login_nonce").val()};$.post(edd_global_vars.ajaxurl,data,function(data){"success"==$.trim(data)?($(".edd_errors").remove(),window.location=edd_scripts.checkout_page):($("#edd_login_fields input[type=submit]").val(complete_purchase_val),$(".edd-loading-ajax").remove(),$(".edd_errors").remove(),$("#edd-user-login-submit").before(data))})}),$("select#edd-gateway, input.edd-gateway").change(function(e){var payment_mode=$("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"==payment_mode||edd_load_gateway(payment_mode),!1}),"1"==edd_scripts.is_checkout){var chosen_gateway=!1,ajax_needed=!1;$("select#edd-gateway, input.edd-gateway").length&&(chosen_gateway=$("meta[name='edd-chosen-gateway']").attr("content"),ajax_needed=!0),chosen_gateway||(chosen_gateway=edd_scripts.default_gateway),ajax_needed?setTimeout(function(){edd_load_gateway(chosen_gateway)},200):$("body").trigger("edd_gateway_loaded",[chosen_gateway])}$(document).on("click","#edd_purchase_form #edd_purchase_submit [type=submit]",function(e){var eddPurchaseform=document.getElementById("edd_purchase_form");if("function"!=typeof eddPurchaseform.checkValidity||!1!==eddPurchaseform.checkValidity()){e.preventDefault();var complete_purchase_val=$(this).val();$(this).val(edd_global_vars.purchase_loading),$(this).prop("disabled",!0),$(this).after('<span class="edd-loading-ajax edd-loading"></span>'),$.post(edd_global_vars.ajaxurl,$("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",function(data){"success"==$.trim(data)?($(".edd_errors").remove(),$(".edd-error").hide(),$(eddPurchaseform).submit()):($("#edd-purchase-button").val(complete_purchase_val),$(".edd-loading-ajax").remove(),$(".edd_errors").remove(),$(".edd-error").hide(),$(edd_global_vars.checkout_error_anchor).before(data),$("#edd-purchase-button").prop("disabled",!1),$(document.body).trigger("edd_checkout_error",[data]))})}}),$(document.body).on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",function(){var $form,$this=$(this),is_checkout="undefined"!=typeof edd_global_vars,field_name="card_state";"edd_address_country"==$(this).attr("id")&&(field_name="edd_address_state");var state_inputs=document.getElementById("card_state");if("card_state"!=$this.attr("id")&&null!=state_inputs){var nonce=$(this).data("nonce"),postData={action:"edd_get_shop_states",country:$this.val(),field_name:field_name,nonce:nonce};$.ajax({type:"POST",data:postData,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(response){$form=is_checkout?$("#edd_purchase_form"):$this.closest("form");var state_inputs='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"==$.trim(response)){$form.find(state_inputs).replaceWith('<input type="text" name="card_state" class="card-state edd-input required" value=""/>')}else $form.find(state_inputs).replaceWith(response);is_checkout&&$(document.body).trigger("edd_cart_billing_address_updated",[response])}}).fail(function(data){window.console&&window.console.log&&console.log(data)}).done(function(data){is_checkout&&recalculate_taxes()})}else is_checkout&&recalculate_taxes();return!1}),$(document.body).on("change","#edd_cc_address input[name=card_zip]",function(){"undefined"!=typeof edd_global_vars&&recalculate_taxes()})});
1
+ var edd_scripts;function edd_load_gateway(payment_mode){jQuery(".edd-cart-ajax").show(),jQuery("#edd_purchase_form_wrap").html('<span class="edd-loading-ajax edd-loading"></span>');var nonce=jQuery("#edd-gateway-"+payment_mode).data(payment_mode+"-nonce"),url=edd_scripts.ajaxurl;0<url.indexOf("?")?url+="&":url+="?",url=url+"payment-mode="+payment_mode,jQuery.post(url,{action:"edd_load_gateway",edd_payment_mode:payment_mode,nonce:nonce},function(response){jQuery("#edd_purchase_form_wrap").html(response),jQuery(".edd-no-js").hide(),jQuery("body").trigger("edd_gateway_loaded",[payment_mode])})}jQuery(document).ready(function($){if($(".edd-no-js").hide(),$("a.edd-add-to-cart").addClass("edd-has-js"),$(document.body).on("click.eddRemoveFromCart",".edd-remove-from-cart",function(event){var $this=$(this),item=$this.data("cart-item"),action=$this.data("action"),id=$this.data("download-id"),nonce=$this.data("nonce"),data={action:action,cart_item:item,nonce:nonce};return $.ajax({type:"POST",data:data,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(response){if(response.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(item,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;$(".edd-cart").each(function(){$(this).find("[data-cart-item='"+item+"']").parent().remove()}),$(".edd-cart").each(function(){var cart_item_counter=0;$(this).find("[data-cart-item]").each(function(){$(this).attr("data-cart-item",cart_item_counter),cart_item_counter+=1})}),$("[id^=edd_purchase_"+id+"]").length&&($("[id^=edd_purchase_"+id+"] .edd_go_to_checkout").hide(),$("[id^=edd_purchase_"+id+"] a.edd-add-to-cart").show().removeAttr("data-edd-loading"),"1"==edd_scripts.quantities_enabled&&$("[id^=edd_purchase_"+id+"] .edd_download_quantity_wrapper").show()),$("span.edd-cart-quantity").text(response.cart_quantity),$(document.body).trigger("edd_quantity_updated",[response.cart_quantity]),edd_scripts.taxes_enabled&&($(".cart_item.edd_subtotal span").html(response.subtotal),$(".cart_item.edd_cart_tax span").html(response.tax)),$(".cart_item.edd_total span").html(response.total),0==response.cart_quantity&&($(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),$(".edd-cart").each(function(){var cart_wrapper=$(this).parent();cart_wrapper&&(cart_wrapper.addClass("cart-empty"),cart_wrapper.removeClass("cart-not-empty")),$(this).append('<li class="cart_item empty">'+edd_scripts.empty_cart_message+"</li>")})),$(document.body).trigger("edd_cart_item_removed",[response])}}}).fail(function(response){window.console&&window.console.log&&console.log(response)}).done(function(response){}),!1}),$(document.body).on("click.eddAddToCart",".edd-add-to-cart",function(e){e.preventDefault();var $this=$(this),form=$this.closest("form");$this.prop("disabled",!0);$this.find(".edd-loading");var container=$this.closest("div");$this.attr("data-edd-loading","");form=$this.parents("form").last();var download=$this.data("download-id"),variable_price=$this.data("variable-price"),price_mode=$this.data("price-mode"),nonce=$this.data("nonce"),item_price_ids=[],free_items=!0;if("yes"==variable_price)if(0<form.find(".edd_price_option_"+download+'[type="hidden"]').length)item_price_ids[0]=$(".edd_price_option_"+download,form).val(),form.find(".edd-submit").data("price")&&0<form.find(".edd-submit").data("price")&&(free_items=!1);else{if(!form.find(".edd_price_option_"+download+":checked",form).length)return $this.removeAttr("data-edd-loading"),alert(edd_scripts.select_option),e.stopPropagation(),$this.prop("disabled",!1),!1;form.find(".edd_price_option_"+download+":checked",form).each(function(index){if(item_price_ids[index]=$(this).val(),!0===free_items){var item_price=$(this).data("price");item_price&&0<item_price&&(free_items=!1)}})}else item_price_ids[0]=download,$this.data("price")&&0<$this.data("price")&&(free_items=!1);if(free_items&&form.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"==form.find(".edd_action_input").val())return form.submit(),!0;var data={action:$this.data("action"),download_id:download,price_ids:item_price_ids,post_data:$(form).serialize(),nonce:nonce};return $.ajax({type:"POST",data:data,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(response){var store_redirect="1"==edd_scripts.redirect_to_checkout,item_redirect="1"==form.find("#edd_redirect_to_checkout").val();if(store_redirect&&item_redirect||!store_redirect&&item_redirect)window.location=edd_scripts.checkout_page;else{"1"===edd_scripts.taxes_enabled&&($(".cart_item.edd_subtotal").show(),$(".cart_item.edd_cart_tax").show()),$(".cart_item.edd_total").show(),$(".cart_item.edd_checkout").show(),$(".cart_item.empty").length&&$(".cart_item.empty").hide(),$(".widget_edd_cart_widget .edd-cart").each(function(cart){var target=$(this).find(".edd-cart-meta:first");$(response.cart_item).insertBefore(target);var cart_wrapper=$(this).parent();cart_wrapper&&(cart_wrapper.addClass("cart-not-empty"),cart_wrapper.removeClass("cart-empty"))}),"1"===edd_scripts.taxes_enabled&&($(".edd-cart-meta.edd_subtotal span").html(response.subtotal),$(".edd-cart-meta.edd_cart_tax span").html(response.tax)),$(".edd-cart-meta.edd_total span").html(response.total);$(".edd-cart-item-title",response.cart_item).length;if($("span.edd-cart-quantity").each(function(){$(this).text(response.cart_quantity),$(document.body).trigger("edd_quantity_updated",[response.cart_quantity])}),"none"==$(".edd-cart-number-of-items").css("display")&&$(".edd-cart-number-of-items").show("slow"),"no"!=variable_price&&"multi"==price_mode||($("a.edd-add-to-cart",container).toggle(),$(".edd_go_to_checkout",container).css("display","inline-block")),"multi"==price_mode&&$this.removeAttr("data-edd-loading"),$(".edd_download_purchase_form").length&&("no"==variable_price||!form.find(".edd_price_option_"+download).is("input:hidden"))){var parent_form=$('.edd_download_purchase_form *[data-download-id="'+download+'"]').parents("form");$("a.edd-add-to-cart",parent_form).hide(),"multi"!=price_mode&&parent_form.find(".edd_download_quantity_wrapper").slideUp(),$(".edd_go_to_checkout",parent_form).show().removeAttr("data-edd-loading")}"incart"!=response&&($(".edd-cart-added-alert",container).fadeIn(),setTimeout(function(){$(".edd-cart-added-alert",container).fadeOut()},3e3)),$this.prop("disabled",!1),$(document.body).trigger("edd_cart_item_added",[response])}}}).fail(function(response){window.console&&window.console.log&&console.log(response)}).done(function(response){}),!1}),$("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",function(){var $this=$(this),data={action:$this.data("action"),nonce:$this.data("nonce")};return $(".edd-cart-ajax").show(),$.post(edd_scripts.ajaxurl,data,function(checkout_response){$("#edd_checkout_login_register").html(edd_scripts.loading),$("#edd_checkout_login_register").html(checkout_response),$(".edd-cart-ajax").hide()}),!1}),$(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",function(e){e.preventDefault();var complete_purchase_val=$(this).val();$(this).val(edd_global_vars.purchase_loading),$(this).after('<span class="edd-loading-ajax edd-loading"></span>');var data={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:$("#edd_login_fields #edd_user_login").val(),edd_user_pass:$("#edd_login_fields #edd_user_pass").val(),edd_login_nonce:$("#edd_login_nonce").val()};$.post(edd_global_vars.ajaxurl,data,function(data){"success"==$.trim(data)?($(".edd_errors").remove(),window.location=edd_scripts.checkout_page):($("#edd_login_fields input[type=submit]").val(complete_purchase_val),$(".edd-loading-ajax").remove(),$(".edd_errors").remove(),$("#edd-user-login-submit").before(data))})}),$("select#edd-gateway, input.edd-gateway").change(function(e){var payment_mode=$("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"==payment_mode||edd_load_gateway(payment_mode),!1}),"1"==edd_scripts.is_checkout){var chosen_gateway=!1,ajax_needed=!1;$("select#edd-gateway, input.edd-gateway").length&&(chosen_gateway=$("meta[name='edd-chosen-gateway']").attr("content"),ajax_needed=!0),chosen_gateway||(chosen_gateway=edd_scripts.default_gateway),ajax_needed?setTimeout(function(){edd_load_gateway(chosen_gateway)},200):$("body").trigger("edd_gateway_loaded",[chosen_gateway])}$(document).on("click","#edd_purchase_form #edd_purchase_submit [type=submit]",function(e){var eddPurchaseform=document.getElementById("edd_purchase_form");if("function"!=typeof eddPurchaseform.checkValidity||!1!==eddPurchaseform.checkValidity()){e.preventDefault();var complete_purchase_val=$(this).val();$(this).val(edd_global_vars.purchase_loading),$(this).prop("disabled",!0),$(this).after('<span class="edd-loading-ajax edd-loading"></span>'),$.post(edd_global_vars.ajaxurl,$("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",function(data){"success"==$.trim(data)?($(".edd_errors").remove(),$(".edd-error").hide(),$(eddPurchaseform).submit()):($("#edd-purchase-button").val(complete_purchase_val),$(".edd-loading-ajax").remove(),$(".edd_errors").remove(),$(".edd-error").hide(),$(edd_global_vars.checkout_error_anchor).before(data),$("#edd-purchase-button").prop("disabled",!1),$(document.body).trigger("edd_checkout_error",[data]))})}}),$(document.body).on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",function(){var $form,$this=$(this),is_checkout="undefined"!=typeof edd_global_vars,field_name="card_state";"edd_address_country"==$(this).attr("id")&&(field_name="edd_address_state");var state_inputs=document.getElementById(field_name);if("card_state"!=$this.attr("id")&&null!=state_inputs){var nonce=$(this).data("nonce"),postData={action:"edd_get_shop_states",country:$this.val(),field_name:field_name,nonce:nonce};$.ajax({type:"POST",data:postData,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(response){$form=is_checkout?$("#edd_purchase_form"):$this.closest("form");var state_inputs='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"==$.trim(response)){var text_field='<input type="text" id='+field_name+' name="card_state" class="card-state edd-input required" value=""/>';$form.find(state_inputs).replaceWith(text_field)}else $form.find(state_inputs).replaceWith(response);is_checkout&&$(document.body).trigger("edd_cart_billing_address_updated",[response])}}).fail(function(data){window.console&&window.console.log&&console.log(data)}).done(function(data){is_checkout&&recalculate_taxes()})}else is_checkout&&recalculate_taxes();return!1}),$(document.body).on("change","#edd_cc_address input[name=card_zip]",function(){"undefined"!=typeof edd_global_vars&&recalculate_taxes()})});
easy-digital-downloads.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
- * Version: 2.9.11
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
@@ -25,7 +25,7 @@
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
- * @version 2.9.11
29
  */
30
 
31
  // Exit if accessed directly.
@@ -206,7 +206,7 @@ final class Easy_Digital_Downloads {
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
- define( 'EDD_VERSION', '2.9.11' );
210
  }
211
 
212
  // Plugin Folder Path.
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
+ * Version: 2.9.12
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
+ * @version 2.9.12
29
  */
30
 
31
  // Exit if accessed directly.
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
+ define( 'EDD_VERSION', '2.9.12' );
210
  }
211
 
212
  // Plugin Folder Path.
includes/admin/admin-pages.php CHANGED
@@ -228,7 +228,7 @@ function edd_is_admin_page( $passed_page = '', $passed_view = '' ) {
228
  case 'settings':
229
  switch ( $passed_view ) {
230
  case 'general':
231
- if ( ( 'download' == $typenow || 'download' === $post_type ) && $pagenow == 'edit.php' && 'edd-settings' === $page && ( 'genera' === $tab || false === $tab ) ) {
232
  $found = true;
233
  }
234
  break;
228
  case 'settings':
229
  switch ( $passed_view ) {
230
  case 'general':
231
+ if ( ( 'download' == $typenow || 'download' === $post_type ) && $pagenow == 'edit.php' && 'edd-settings' === $page && ( 'general' === $tab || false === $tab ) ) {
232
  $found = true;
233
  }
234
  break;
includes/cart/functions.php CHANGED
@@ -244,7 +244,7 @@ function edd_get_cart_item_price_name( $item = array() ) {
244
  * Get cart item title
245
  *
246
  * @since 2.4.3
247
- * @param int $item Cart item array
248
  * @return string item title
249
  */
250
  function edd_get_cart_item_name( $item = array() ) {
244
  * Get cart item title
245
  *
246
  * @since 2.4.3
247
+ * @param array $item Cart item array
248
  * @return string item title
249
  */
250
  function edd_get_cart_item_name( $item = array() ) {
includes/class-edd-discount.php CHANGED
@@ -1441,7 +1441,7 @@ class EDD_Discount {
1441
  if ( $this->start ) {
1442
  $start_date = strtotime( $this->start );
1443
 
1444
- if ( $start_date < current_time( 'timestamp' ) ) {
1445
  // Discount has pased the start date
1446
  $return = true;
1447
  } elseif( $set_error ) {
@@ -1480,7 +1480,7 @@ class EDD_Discount {
1480
 
1481
  $expiration = strtotime( $this->expiration );
1482
 
1483
- if ( $expiration < current_time( 'timestamp' ) ) {
1484
  if ( $update ) {
1485
  $this->update_status( 'inactive' );
1486
  $this->update_meta( 'status', 'expired' );
1441
  if ( $this->start ) {
1442
  $start_date = strtotime( $this->start );
1443
 
1444
+ if ( $start_date < time() ) {
1445
  // Discount has pased the start date
1446
  $return = true;
1447
  } elseif( $set_error ) {
1480
 
1481
  $expiration = strtotime( $this->expiration );
1482
 
1483
+ if ( $expiration < time() ) {
1484
  if ( $update ) {
1485
  $this->update_status( 'inactive' );
1486
  $this->update_meta( 'status', 'expired' );
includes/error-tracking.php CHANGED
@@ -140,6 +140,8 @@ function _edd_die_handler() {
140
  */
141
  function edd_die( $message = '', $title = '', $status = 400 ) {
142
  add_filter( 'wp_die_ajax_handler', '_edd_die_handler', 10, 3 );
143
- add_filter( 'wp_die_handler', '_edd_die_handler', 10, 3 );
 
 
144
  wp_die( $message, $title, array( 'response' => $status ));
145
  }
140
  */
141
  function edd_die( $message = '', $title = '', $status = 400 ) {
142
  add_filter( 'wp_die_ajax_handler', '_edd_die_handler', 10, 3 );
143
+ add_filter( 'wp_die_handler' , '_edd_die_handler', 10, 3 );
144
+ add_filter( 'wp_die_json_handler', '_edd_die_handler', 10, 3 );
145
+
146
  wp_die( $message, $title, array( 'response' => $status ));
147
  }
includes/gateways/paypal-standard.php CHANGED
@@ -909,7 +909,18 @@ function edd_paypal_process_pdt_on_return() {
909
  return;
910
  }
911
 
912
- $payment = new EDD_Payment( $payment_id );
 
 
 
 
 
 
 
 
 
 
 
913
 
914
  if( $token && ! empty( $_GET['tx'] ) && $payment->ID > 0 ) {
915
 
909
  return;
910
  }
911
 
912
+ $purchase_session = edd_get_purchase_session();
913
+ $payment = new EDD_Payment( $payment_id );
914
+
915
+ // If there is no purchase session, don't try and fire PDT.
916
+ if ( empty( $purchase_session ) ) {
917
+ return;
918
+ }
919
+
920
+ // Do not fire a PDT verification if the purchase session does not match the payment-id PDT is asking to verify.
921
+ if ( ! empty( $purchase_session['purchase_key'] ) && $payment->key !== $purchase_session['purchase_key'] ) {
922
+ return;
923
+ }
924
 
925
  if( $token && ! empty( $_GET['tx'] ) && $payment->ID > 0 ) {
926
 
includes/privacy-functions.php CHANGED
@@ -637,6 +637,11 @@ function edd_privacy_customer_record_exporter( $email_address = '', $page = 1 )
637
  function edd_privacy_billing_information_exporter( $email_address = '', $page = 1 ) {
638
 
639
  $customer = new EDD_Customer( $email_address );
 
 
 
 
 
640
  $payments = edd_get_payments( array(
641
  'customer' => $customer->id,
642
  'output' => 'payments',
@@ -802,6 +807,11 @@ function edd_privacy_file_download_log_exporter( $email_address = '', $page = 1
802
  global $edd_logs;
803
 
804
  $customer = new EDD_Customer( $email_address );
 
 
 
 
 
805
  $log_query = array(
806
  'log_type' => 'file_download',
807
  'posts_per_page' => 100,
637
  function edd_privacy_billing_information_exporter( $email_address = '', $page = 1 ) {
638
 
639
  $customer = new EDD_Customer( $email_address );
640
+
641
+ if ( empty( $customer->id ) ) {
642
+ return array( 'data' => array(), 'done' => true );
643
+ }
644
+
645
  $payments = edd_get_payments( array(
646
  'customer' => $customer->id,
647
  'output' => 'payments',
807
  global $edd_logs;
808
 
809
  $customer = new EDD_Customer( $email_address );
810
+
811
+ if ( empty( $customer->id ) ) {
812
+ return array( 'data' => array(), 'done' => true );
813
+ }
814
+
815
  $log_query = array(
816
  'log_type' => 'file_download',
817
  'posts_per_page' => 100,
languages/easy-digital-downloads.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Easy Digital Downloads 2.9.11\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
- "POT-Creation-Date: 2019-01-06 16:30:56+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -22,7 +22,7 @@ msgstr ""
22
  "X-Poedit-SearchPath-0: .\n"
23
  "X-Poedit-Bookmarks: \n"
24
  "X-Textdomain-Support: yes\n"
25
- "X-Generator: grunt-wp-i18n1.0.2\n"
26
 
27
  #: easy-digital-downloads.php:183 easy-digital-downloads.php:195
28
  msgid "Cheatin&#8217; huh?"
@@ -663,7 +663,7 @@ msgid "Customer since %s"
663
  msgstr ""
664
 
665
  #: includes/admin/customers/customers.php:313
666
- #: includes/privacy-functions.php:857
667
  msgid "User ID"
668
  msgstr ""
669
 
@@ -751,7 +751,7 @@ msgid "Remove"
751
  msgstr ""
752
 
753
  #: includes/admin/customers/customers.php:416
754
- #: includes/checkout/template.php:182 includes/privacy-functions.php:754
755
  msgid "Email Address"
756
  msgstr ""
757
 
@@ -802,7 +802,7 @@ msgstr ""
802
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:41
803
  #: includes/admin/reporting/export/class-batch-export-payments.php:60
804
  #: includes/admin/reporting/export/class-batch-export-sales.php:49
805
- #: includes/admin/tools.php:587 includes/privacy-functions.php:932
806
  #: templates/history-purchases.php:19 templates/shortcode-receipt.php:59
807
  msgid "Date"
808
  msgstr ""
@@ -814,7 +814,7 @@ msgstr ""
814
  #: includes/admin/reporting/class-export-payments.php:80
815
  #: includes/admin/reporting/export/class-batch-export-downloads.php:48
816
  #: includes/admin/reporting/export/class-batch-export-payments.php:65
817
- #: includes/admin/tools.php:614 includes/privacy-functions.php:766
818
  msgid "Status"
819
  msgstr ""
820
 
@@ -2399,7 +2399,7 @@ msgid "Click \"Save Payment\" to create new customer"
2399
  msgstr ""
2400
 
2401
  #: includes/admin/payments/view-order-details.php:689
2402
- #: includes/checkout/template.php:347 includes/privacy-functions.php:758
2403
  msgid "Billing Address"
2404
  msgstr ""
2405
 
@@ -2572,8 +2572,8 @@ msgstr ""
2572
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:41
2573
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:43
2574
  #: includes/admin/reporting/export/class-batch-export-payments.php:63
2575
- #: includes/admin/tools.php:542 includes/privacy-functions.php:762
2576
- #: includes/privacy-functions.php:861 includes/privacy-functions.php:940
2577
  msgid "IP Address"
2578
  msgstr ""
2579
 
@@ -2866,7 +2866,7 @@ msgstr ""
2866
  #: includes/admin/reporting/export/class-batch-export-payments.php:42
2867
  #: includes/admin/reporting/export/class-batch-export-sales.php:41
2868
  #: includes/admin/tools.php:524 includes/privacy-functions.php:581
2869
- #: includes/privacy-functions.php:853
2870
  msgid "Customer ID"
2871
  msgstr ""
2872
 
@@ -6842,39 +6842,39 @@ msgstr ""
6842
  msgid "PayPal Refund Transaction ID: %s"
6843
  msgstr ""
6844
 
6845
- #: includes/gateways/paypal-standard.php:984
6846
  msgid ""
6847
  "Payment could not be verified while validating PayPal PDT. Missing payment "
6848
  "total fields."
6849
  msgstr ""
6850
 
6851
- #: includes/gateways/paypal-standard.php:995
6852
  msgid ""
6853
  "Payment failed while validating PayPal PDT. Amount expected: %f. Amount "
6854
  "Received: %f"
6855
  msgstr ""
6856
 
6857
- #: includes/gateways/paypal-standard.php:1025
6858
  msgid "Payment failed while validating PayPal PDT."
6859
  msgstr ""
6860
 
6861
- #: includes/gateways/paypal-standard.php:1032
6862
  msgid "PayPal PDT encountered an unexpected result, payment set to pending"
6863
  msgstr ""
6864
 
6865
- #: includes/gateways/paypal-standard.php:1117
6866
  msgid "Refund Payment in PayPal"
6867
  msgstr ""
6868
 
6869
- #: includes/gateways/paypal-standard.php:1264
6870
  msgid "PayPal refund failed for unknown reason."
6871
  msgstr ""
6872
 
6873
- #: includes/gateways/paypal-standard.php:1274
6874
  msgid "PayPal refund transaction ID: %s"
6875
  msgstr ""
6876
 
6877
- #: includes/gateways/paypal-standard.php:1278
6878
  msgid "PayPal refund failed: %s"
6879
  msgstr ""
6880
 
@@ -7490,7 +7490,7 @@ msgid "Payment ID %d successfully anonymized."
7490
  msgstr ""
7491
 
7492
  #: includes/privacy-functions.php:533 includes/privacy-functions.php:577
7493
- #: includes/privacy-functions.php:1126
7494
  msgid "Customer Record"
7495
  msgstr ""
7496
 
@@ -7498,8 +7498,8 @@ msgstr ""
7498
  msgid "Billing Information"
7499
  msgstr ""
7500
 
7501
- #: includes/privacy-functions.php:549 includes/privacy-functions.php:949
7502
- #: includes/privacy-functions.php:1141
7503
  msgid "API Access Logs"
7504
  msgstr ""
7505
 
@@ -7515,91 +7515,91 @@ msgstr ""
7515
  msgid "Agreed to Privacy Policy"
7516
  msgstr ""
7517
 
7518
- #: includes/privacy-functions.php:732
7519
  msgid "Order ID / Number"
7520
  msgstr ""
7521
 
7522
- #: includes/privacy-functions.php:736
7523
  msgid "Order Date"
7524
  msgstr ""
7525
 
7526
- #: includes/privacy-functions.php:740
7527
  msgid "Order Completed Date"
7528
  msgstr ""
7529
 
7530
- #: includes/privacy-functions.php:746
7531
  msgid "Order Total"
7532
  msgstr ""
7533
 
7534
- #: includes/privacy-functions.php:750
7535
  msgid "Order Items"
7536
  msgstr ""
7537
 
7538
- #: includes/privacy-functions.php:775
7539
  msgid "Customer Orders"
7540
  msgstr ""
7541
 
7542
- #: includes/privacy-functions.php:841
7543
  msgid "Date of Download"
7544
  msgstr ""
7545
 
7546
- #: includes/privacy-functions.php:845
7547
  msgid "Product Downloaded"
7548
  msgstr ""
7549
 
7550
- #: includes/privacy-functions.php:849
7551
  msgid "Order ID"
7552
  msgstr ""
7553
 
7554
- #: includes/privacy-functions.php:870 includes/privacy-functions.php:1136
7555
  msgid "File Download Logs"
7556
  msgstr ""
7557
 
7558
- #: includes/privacy-functions.php:936
7559
  msgid "Request"
7560
  msgstr ""
7561
 
7562
- #: includes/privacy-functions.php:1012
7563
  msgid "Possibly Delete Customer"
7564
  msgstr ""
7565
 
7566
- #: includes/privacy-functions.php:1078
7567
  msgid "Customer for %s not deleted, due to remaining payments."
7568
  msgstr ""
7569
 
7570
- #: includes/privacy-functions.php:1096
7571
  msgid "Customer for %s successfully deleted."
7572
  msgstr ""
7573
 
7574
- #: includes/privacy-functions.php:1107
7575
  msgid "Customer for %s failed to be deleted."
7576
  msgstr ""
7577
 
7578
- #: includes/privacy-functions.php:1131
7579
  msgid "Payment Record"
7580
  msgstr ""
7581
 
7582
- #: includes/privacy-functions.php:1174
7583
  msgid "Customer for %s has been anonymized."
7584
  msgstr ""
7585
 
7586
- #: includes/privacy-functions.php:1199
7587
  msgid "No payments found for %s."
7588
  msgstr ""
7589
 
7590
- #: includes/privacy-functions.php:1200
7591
  msgid "All eligible payments anonymized or deleted for %s."
7592
  msgstr ""
7593
 
7594
- #: includes/privacy-functions.php:1273
7595
  msgid "All eligible file download logs anonymized or deleted for %s."
7596
  msgstr ""
7597
 
7598
- #: includes/privacy-functions.php:1322
7599
  msgid "No User found for %s, no access logs to remove."
7600
  msgstr ""
7601
 
7602
- #: includes/privacy-functions.php:1347
7603
  msgid "All API access logs deleted for %s."
7604
  msgstr ""
7605
 
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Easy Digital Downloads 2.9.12\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
+ "POT-Creation-Date: 2019-03-26 23:09:11+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
22
  "X-Poedit-SearchPath-0: .\n"
23
  "X-Poedit-Bookmarks: \n"
24
  "X-Textdomain-Support: yes\n"
25
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
26
 
27
  #: easy-digital-downloads.php:183 easy-digital-downloads.php:195
28
  msgid "Cheatin&#8217; huh?"
663
  msgstr ""
664
 
665
  #: includes/admin/customers/customers.php:313
666
+ #: includes/privacy-functions.php:867
667
  msgid "User ID"
668
  msgstr ""
669
 
751
  msgstr ""
752
 
753
  #: includes/admin/customers/customers.php:416
754
+ #: includes/checkout/template.php:182 includes/privacy-functions.php:759
755
  msgid "Email Address"
756
  msgstr ""
757
 
802
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:41
803
  #: includes/admin/reporting/export/class-batch-export-payments.php:60
804
  #: includes/admin/reporting/export/class-batch-export-sales.php:49
805
+ #: includes/admin/tools.php:587 includes/privacy-functions.php:942
806
  #: templates/history-purchases.php:19 templates/shortcode-receipt.php:59
807
  msgid "Date"
808
  msgstr ""
814
  #: includes/admin/reporting/class-export-payments.php:80
815
  #: includes/admin/reporting/export/class-batch-export-downloads.php:48
816
  #: includes/admin/reporting/export/class-batch-export-payments.php:65
817
+ #: includes/admin/tools.php:614 includes/privacy-functions.php:771
818
  msgid "Status"
819
  msgstr ""
820
 
2399
  msgstr ""
2400
 
2401
  #: includes/admin/payments/view-order-details.php:689
2402
+ #: includes/checkout/template.php:347 includes/privacy-functions.php:763
2403
  msgid "Billing Address"
2404
  msgstr ""
2405
 
2572
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:41
2573
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:43
2574
  #: includes/admin/reporting/export/class-batch-export-payments.php:63
2575
+ #: includes/admin/tools.php:542 includes/privacy-functions.php:767
2576
+ #: includes/privacy-functions.php:871 includes/privacy-functions.php:950
2577
  msgid "IP Address"
2578
  msgstr ""
2579
 
2866
  #: includes/admin/reporting/export/class-batch-export-payments.php:42
2867
  #: includes/admin/reporting/export/class-batch-export-sales.php:41
2868
  #: includes/admin/tools.php:524 includes/privacy-functions.php:581
2869
+ #: includes/privacy-functions.php:863
2870
  msgid "Customer ID"
2871
  msgstr ""
2872
 
6842
  msgid "PayPal Refund Transaction ID: %s"
6843
  msgstr ""
6844
 
6845
+ #: includes/gateways/paypal-standard.php:995
6846
  msgid ""
6847
  "Payment could not be verified while validating PayPal PDT. Missing payment "
6848
  "total fields."
6849
  msgstr ""
6850
 
6851
+ #: includes/gateways/paypal-standard.php:1006
6852
  msgid ""
6853
  "Payment failed while validating PayPal PDT. Amount expected: %f. Amount "
6854
  "Received: %f"
6855
  msgstr ""
6856
 
6857
+ #: includes/gateways/paypal-standard.php:1036
6858
  msgid "Payment failed while validating PayPal PDT."
6859
  msgstr ""
6860
 
6861
+ #: includes/gateways/paypal-standard.php:1043
6862
  msgid "PayPal PDT encountered an unexpected result, payment set to pending"
6863
  msgstr ""
6864
 
6865
+ #: includes/gateways/paypal-standard.php:1128
6866
  msgid "Refund Payment in PayPal"
6867
  msgstr ""
6868
 
6869
+ #: includes/gateways/paypal-standard.php:1275
6870
  msgid "PayPal refund failed for unknown reason."
6871
  msgstr ""
6872
 
6873
+ #: includes/gateways/paypal-standard.php:1285
6874
  msgid "PayPal refund transaction ID: %s"
6875
  msgstr ""
6876
 
6877
+ #: includes/gateways/paypal-standard.php:1289
6878
  msgid "PayPal refund failed: %s"
6879
  msgstr ""
6880
 
7490
  msgstr ""
7491
 
7492
  #: includes/privacy-functions.php:533 includes/privacy-functions.php:577
7493
+ #: includes/privacy-functions.php:1136
7494
  msgid "Customer Record"
7495
  msgstr ""
7496
 
7498
  msgid "Billing Information"
7499
  msgstr ""
7500
 
7501
+ #: includes/privacy-functions.php:549 includes/privacy-functions.php:959
7502
+ #: includes/privacy-functions.php:1151
7503
  msgid "API Access Logs"
7504
  msgstr ""
7505
 
7515
  msgid "Agreed to Privacy Policy"
7516
  msgstr ""
7517
 
7518
+ #: includes/privacy-functions.php:737
7519
  msgid "Order ID / Number"
7520
  msgstr ""
7521
 
7522
+ #: includes/privacy-functions.php:741
7523
  msgid "Order Date"
7524
  msgstr ""
7525
 
7526
+ #: includes/privacy-functions.php:745
7527
  msgid "Order Completed Date"
7528
  msgstr ""
7529
 
7530
+ #: includes/privacy-functions.php:751
7531
  msgid "Order Total"
7532
  msgstr ""
7533
 
7534
+ #: includes/privacy-functions.php:755
7535
  msgid "Order Items"
7536
  msgstr ""
7537
 
7538
+ #: includes/privacy-functions.php:780
7539
  msgid "Customer Orders"
7540
  msgstr ""
7541
 
7542
+ #: includes/privacy-functions.php:851
7543
  msgid "Date of Download"
7544
  msgstr ""
7545
 
7546
+ #: includes/privacy-functions.php:855
7547
  msgid "Product Downloaded"
7548
  msgstr ""
7549
 
7550
+ #: includes/privacy-functions.php:859
7551
  msgid "Order ID"
7552
  msgstr ""
7553
 
7554
+ #: includes/privacy-functions.php:880 includes/privacy-functions.php:1146
7555
  msgid "File Download Logs"
7556
  msgstr ""
7557
 
7558
+ #: includes/privacy-functions.php:946
7559
  msgid "Request"
7560
  msgstr ""
7561
 
7562
+ #: includes/privacy-functions.php:1022
7563
  msgid "Possibly Delete Customer"
7564
  msgstr ""
7565
 
7566
+ #: includes/privacy-functions.php:1088
7567
  msgid "Customer for %s not deleted, due to remaining payments."
7568
  msgstr ""
7569
 
7570
+ #: includes/privacy-functions.php:1106
7571
  msgid "Customer for %s successfully deleted."
7572
  msgstr ""
7573
 
7574
+ #: includes/privacy-functions.php:1117
7575
  msgid "Customer for %s failed to be deleted."
7576
  msgstr ""
7577
 
7578
+ #: includes/privacy-functions.php:1141
7579
  msgid "Payment Record"
7580
  msgstr ""
7581
 
7582
+ #: includes/privacy-functions.php:1184
7583
  msgid "Customer for %s has been anonymized."
7584
  msgstr ""
7585
 
7586
+ #: includes/privacy-functions.php:1209
7587
  msgid "No payments found for %s."
7588
  msgstr ""
7589
 
7590
+ #: includes/privacy-functions.php:1210
7591
  msgid "All eligible payments anonymized or deleted for %s."
7592
  msgstr ""
7593
 
7594
+ #: includes/privacy-functions.php:1283
7595
  msgid "All eligible file download logs anonymized or deleted for %s."
7596
  msgstr ""
7597
 
7598
+ #: includes/privacy-functions.php:1332
7599
  msgid "No User found for %s, no access logs to remove."
7600
  msgstr ""
7601
 
7602
+ #: includes/privacy-functions.php:1357
7603
  msgid "All API access logs deleted for %s."
7604
  msgstr ""
7605
 
readme.txt CHANGED
@@ -3,10 +3,10 @@ Author URI: https://easydigitaldownloads.com
3
  Plugin URI: https://easydigitaldownloads.com
4
  Contributors: easydigitaldownloads, mordauk, sunnyratilal, chriscct7, section214, sumobi, sdavis2702, cklosows, mindctrl, sksmatt, SpencerFinnell, johnstonphilip, brashrebel, drewapicture, johnjamesjacoby, nosegraze
5
  Donate link: https://easydigitaldownloads.com/donate/
6
- Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce, ecommerce, ebook
7
  Requires at least: 4.4
8
- Tested up to: 5.0.2
9
- Stable Tag: 2.9.11
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
@@ -25,7 +25,7 @@ Easy Digital Downloads has been translated into more than two dozen languages an
25
 
26
  = Payment gateways for everyone =
27
 
28
- The internet has made it possible for anyone to sell their products to a world-wide audience. No matter where you live, Easy Digital Downloads can work for you. We offer integrations for the most common merchant processors and, through 3rd party extensions, support for many, many more as well.
29
 
30
  Payment gateways supported in the core, free plugin:
31
 
@@ -188,6 +188,13 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
188
  9. Checkout screen
189
 
190
  == Changelog ==
 
 
 
 
 
 
 
191
 
192
  = 2.9.11, January 6, 2019 =
193
  * Fix: PayPal PDT amount validation fails for some accounts due to missing payment_gross field.
3
  Plugin URI: https://easydigitaldownloads.com
4
  Contributors: easydigitaldownloads, mordauk, sunnyratilal, chriscct7, section214, sumobi, sdavis2702, cklosows, mindctrl, sksmatt, SpencerFinnell, johnstonphilip, brashrebel, drewapicture, johnjamesjacoby, nosegraze
5
  Donate link: https://easydigitaldownloads.com/donate/
6
+ Tags: ecommerce, e-commerce, sell, downloads, store, paypal, checkout, shop
7
  Requires at least: 4.4
8
+ Tested up to: 5.1.1
9
+ Stable Tag: 2.9.12
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
25
 
26
  = Payment gateways for everyone =
27
 
28
+ The internet has made it possible for anyone to sell their products to a world-wide audience. No matter where you live, Easy Digital Downloads can be your eCommerce solution. We offer integrations for the most common merchant processors and, through 3rd party extensions, support for many, many more as well.
29
 
30
  Payment gateways supported in the core, free plugin:
31
 
188
  9. Checkout screen
189
 
190
  == Changelog ==
191
+ = 2.9.12, March 26, 2019 =
192
+ * Fix: Limit PayPal PDT verification to purchase sessions.
193
+ * Fix: Discount start times were not accounting for GMT offsets.
194
+ * Fix: Improved reliability of the State field when selecting different countries.
195
+ * Fix: GDPR Data Exporter now skips any requests for customer data when no customer is found for a user.
196
+ * Fix: WordPress 5.x : apiFetch call was resulting in invalid JSON response.
197
+ * Fix: Corrected a conditional check typo when determining if settings page is EDD related.
198
 
199
  = 2.9.11, January 6, 2019 =
200
  * Fix: PayPal PDT amount validation fails for some accounts due to missing payment_gross field.