Easy Digital Downloads - Version 2.9.5

Version Description

Download this release

Release Info

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

Code changes from version 2.9.4 to 2.9.5

assets/js/admin-scripts.js CHANGED
@@ -414,6 +414,7 @@ jQuery(document).ready(function ($) {
414
  var data = {
415
  action: 'edd_get_shop_states',
416
  country: $this.val(),
 
417
  field_name: 'edd-payment-address[0][state]'
418
  };
419
  $.post(ajaxurl, data, function (response) {
@@ -1101,7 +1102,8 @@ jQuery(document).ready(function ($) {
1101
  var $this = $(this), $tr = $this.closest('tr');
1102
  var data = {
1103
  action: 'edd_get_shop_states',
1104
- country: $(this).val(),
 
1105
  field_name: 'edd_settings[base_state]'
1106
  };
1107
  $.post(ajaxurl, data, function (response) {
@@ -1121,7 +1123,8 @@ jQuery(document).ready(function ($) {
1121
  var $this = $(this);
1122
  var data = {
1123
  action: 'edd_get_shop_states',
1124
- country: $(this).val(),
 
1125
  field_name: $this.attr('name').replace('country', 'state')
1126
  };
1127
  $.post(ajaxurl, data, function (response) {
@@ -1940,6 +1943,7 @@ jQuery(document).ready(function ($) {
1940
  var data = {
1941
  action: 'edd_get_shop_states',
1942
  country: $this.val(),
 
1943
  field_name: 'customerinfo[state]'
1944
  };
1945
  $.post(ajaxurl, data, function (response) {
414
  var data = {
415
  action: 'edd_get_shop_states',
416
  country: $this.val(),
417
+ nonce: $this.data('nonce'),
418
  field_name: 'edd-payment-address[0][state]'
419
  };
420
  $.post(ajaxurl, data, function (response) {
1102
  var $this = $(this), $tr = $this.closest('tr');
1103
  var data = {
1104
  action: 'edd_get_shop_states',
1105
+ country: $this.val(),
1106
+ nonce: $this.data('nonce'),
1107
  field_name: 'edd_settings[base_state]'
1108
  };
1109
  $.post(ajaxurl, data, function (response) {
1123
  var $this = $(this);
1124
  var data = {
1125
  action: 'edd_get_shop_states',
1126
+ country: $this.val(),
1127
+ nonce: $this.data('nonce'),
1128
  field_name: $this.attr('name').replace('country', 'state')
1129
  };
1130
  $.post(ajaxurl, data, function (response) {
1943
  var data = {
1944
  action: 'edd_get_shop_states',
1945
  country: $this.val(),
1946
+ nonce: $this.data('nonce'),
1947
  field_name: 'customerinfo[state]'
1948
  };
1949
  $.post(ajaxurl, data, function (response) {
assets/js/admin-scripts.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function($){edd_attach_tooltips($(".edd-help-tip"));var EDD_Download_Configuration={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(row){var key=highest=1;return row.parent().find(".edd_repeatable_row").each(function(){var current=$(this).data("key");parseInt(current)>highest&&(highest=current)}),key=highest+=1,clone=row.clone(),clone.removeClass("edd_add_blank"),clone.attr("data-key",key),clone.find("input, select, textarea").val("").each(function(){var name=$(this).attr("name"),id=$(this).attr("id");name&&(name=name.replace(/\[(\d+)\]/,"["+parseInt(key)+"]"),$(this).attr("name",name)),$(this).attr("data-key",key),void 0!==id&&(id=id.replace(/(\d+)/,parseInt(key)),$(this).attr("id",id))}),clone.find("select").each(function(){$(this).val(row.find('select[name="'+$(this).attr("name")+'"]').val())}),clone.find('input[type="checkbox"]').each(function(){$(this).is(":checked")&&$(this).prop("checked",!1),$(this).val(1)}),clone.find("span.edd_price_id").each(function(){$(this).text(parseInt(key))}),clone.find("span.edd_file_id").each(function(){$(this).text(parseInt(key))}),clone.find(".edd_repeatable_default_input").each(function(){$(this).val(parseInt(key)).removeAttr("checked")}),clone.find(".edd_repeatable_condition_field").each(function(){$(this).find("option:eq(0)").prop("selected","selected")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),edd_attach_tooltips(clone.find(".edd-help-tip")),clone},add:function(){$(document.body).on("click",".submit .edd_add_repeatable",function(e){e.preventDefault();var row=$(this).parent().parent().prev(".edd_repeatable_row"),clone=EDD_Download_Configuration.clone_repeatable(row);clone.insertAfter(row).find("input, textarea, select").filter(":visible").eq(0).focus(),clone.find(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),clone.find(".edd-select-chosen").css("width","100%"),clone.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){$(".edd_repeatable_table .edd-repeatables-wrap").sortable({handle:".edd-draghandle-anchor",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var count=0;$(this).find(".edd_repeatable_row").each(function(){$(this).find("input.edd_repeatable_index").each(function(){$(this).val(count)}),count++})}})},remove:function(){$(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",function(e){e.preventDefault();var firstFocusable,row=$(this).parents(".edd_repeatable_row"),count=row.parent().find(".edd_repeatable_row").length,type=$(this).data("type"),repeatable="div.edd_repeatable_"+type+"s";if(firstFocusable=($(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?row.next(".edd_repeatable_row"):row.prev(".edd_repeatable_row")).find("select, input, textarea, button").filter(":visible").eq(0),"price"===type){var price_row_id=row.data("key");$('.edd_repeatable_condition_field option[value="'+price_row_id+'"]').remove()}if(1<count)$("input, select",row).val(""),row.fadeOut("fast").remove(),firstFocusable.focus();else switch(type){case"price":alert(edd_vars.one_price_min);break;case"file":$("input, select",row).val("");break;default:alert(edd_vars.one_field_min)}$(repeatable).each(function(rowIndex){$(this).find("input, select").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+rowIndex+"]"),$(this).attr("name",name).attr("id",name)})})})},type:function(){$(document.body).on("change","#_edd_product_type",function(e){var edd_products=$("#edd_products"),edd_download_files=$("#edd_download_files"),edd_download_limit_wrap=$("#edd_download_limit_wrap");"bundle"===$(this).val()?(edd_products.show(),edd_download_files.hide(),edd_download_limit_wrap.hide()):(edd_products.hide(),edd_download_files.show(),edd_download_limit_wrap.show())})},prices:function(){$(document.body).on("change","#edd_variable_pricing",function(e){var checked=$(this).is(":checked"),single=$("#edd_regular_price_field"),variable=$("#edd_variable_price_fields, .edd_repeatable_table .pricing"),bundleRow=$(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");checked?(single.hide(),variable.show(),bundleRow.addClass("has-variable-pricing")):(single.show(),variable.hide(),bundleRow.removeClass("has-variable-pricing"))})},files:function(){var file_frame;window.formfield="",$(document.body).on("click",".edd_upload_file_button",function(e){e.preventDefault();var button=$(this);window.formfield=$(this).closest(".edd_repeatable_upload_wrapper"),file_frame||((file_frame=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:button.data("uploader-title"),button:{text:button.data("uploader-button-text")},multiple:"0"!=$(this).data("multiple")})).on("menu:render:default",function(view){view.unset("library-separator"),view.unset("gallery"),view.unset("featured-image"),view.unset("embed"),view.set({})}),file_frame.on("insert",function(){file_frame.state().get("selection").each(function(attachment,index){var selectedSize="image"===(attachment=attachment.toJSON()).type&&$(".attachment-display-settings .size option:selected").val(),selectedURL=attachment.url,selectedName=0<attachment.title.length?attachment.title:attachment.filename;if(selectedSize&&void 0!==attachment.sizes[selectedSize]&&(selectedURL=attachment.sizes[selectedSize].url),"image"===attachment.type&&(selectedName=selectedSize&&void 0!==attachment.sizes[selectedSize]?selectedName+"-"+attachment.sizes[selectedSize].width+"x"+attachment.sizes[selectedSize].height:selectedName+"-"+attachment.width+"x"+attachment.height),0===index)window.formfield.find(".edd_repeatable_attachment_id_field").val(attachment.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(selectedSize),window.formfield.find(".edd_repeatable_upload_field").val(selectedURL),window.formfield.find(".edd_repeatable_name_field").val(selectedName);else{var row=window.formfield,clone=EDD_Download_Configuration.clone_repeatable(row);clone.find(".edd_repeatable_attachment_id_field").val(attachment.id),clone.find(".edd_repeatable_thumbnail_size_field").val(selectedSize),clone.find(".edd_repeatable_upload_field").val(selectedURL),clone.find(".edd_repeatable_name_field").val(selectedName),clone.insertAfter(row)}})})),file_frame.open()}),window.formfield=""},updatePrices:function(){$("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var key=$(this).parents(".edd_repeatable_row").data("key"),name=$(this).val(),field_option=$(".edd_repeatable_condition_field option[value="+key+"]");0<field_option.length?field_option.text(name):$(".edd_repeatable_condition_field").append($("<option></option>").attr("value",key).text(name))})}};$(document.body).on("click",".toggle-custom-price-option-section",function(e){e.preventDefault();var show=$(this).html()==edd_vars.show_advanced_settings;show?$(this).html(edd_vars.hide_advanced_settings):$(this).html(edd_vars.show_advanced_settings);var header=$(this).parents(".edd-repeatable-row-header");header.siblings(".edd-custom-price-option-sections-wrap").slideToggle(),$(":input:not(input[type=button],input[type=submit],button):visible:first",show?header.siblings(".edd-custom-price-option-sections-wrap"):header.siblings(".edd-repeatable-row-standard-fields")).focus()}),EDD_Download_Configuration.init();var typingTimer,edd_datepicker=$(".edd_datepicker");if(0<edd_datepicker.length){edd_datepicker.datepicker({dateFormat:"mm/dd/yy"})}({init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.change_customer(),this.new_customer(),this.edit_price(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){$('select[name="edd-payment-address[0][country]"]').change(function(){var data={action:"edd_get_shop_states",country:$(this).val(),field_name:"edd-payment-address[0][state]"};return $.post(ajaxurl,data,function(response){var state_wrapper=$("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");$("#edd-order-address-state-wrap .chosen-container").remove(),"nostates"==response?state_wrapper.replaceWith('<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>'):state_wrapper.replaceWith(response)}),!1})},remove_download:function(){$("#edd-purchased-files").on("click",".edd-order-remove-download",function(){if(1===$(document.body).find("#edd-purchased-files > .row:not(.header)").length)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var key=$(this).data("key"),download_id=($(".edd-payment-id").val(),$('input[name="edd-payment-details-downloads['+key+'][id]"]').val()),price_id=$('input[name="edd-payment-details-downloads['+key+'][price_id]"]').val(),quantity=$('input[name="edd-payment-details-downloads['+key+'][quantity]"]').val(),amount=$('input[name="edd-payment-details-downloads['+key+'][amount]"]').val();if($('input[name="edd-payment-details-downloads['+key+'][tax]"]'))var fees=$('input[name="edd-payment-details-downloads['+key+'][tax]"]').val();if($('input[name="edd-payment-details-downloads['+key+'][fees]"]'))fees=$.parseJSON($('input[name="edd-payment-details-downloads['+key+'][fees]"]').val());var currently_removed=$('input[name="edd-payment-removed"]').val();(currently_removed=$.parseJSON(currently_removed)).length<1&&(currently_removed={});var removed_item=[{id:download_id,price_id:price_id,quantity:quantity,amount:amount,cart_index:key}];currently_removed[key]=removed_item,$('input[name="edd-payment-removed"]').val(JSON.stringify(currently_removed)),$(this).parent().parent().remove(),fees&&fees.length&&$.each(fees,function(key,value){$('*li[data-fee-id="'+value+'"]').remove()}),$("#edd-payment-downloads-changed").val(1),$(".edd-order-payment-recalc-totals").show()}return!1})},change_customer:function(){$("#edd-customer-details").on("click",".edd-payment-change-customer, .edd-payment-change-customer-cancel",function(e){e.preventDefault();var change_customer=$(this).hasClass("edd-payment-change-customer"),cancel=$(this).hasClass("edd-payment-change-customer-cancel");change_customer?($(".customer-info").hide(),$(".change-customer").show(),$(".edd-payment-change-customer-input").css("width","auto")):cancel&&($(".customer-info").show(),$(".change-customer").hide())})},new_customer:function(){$("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(e){e.preventDefault();var new_customer=$(this).hasClass("edd-payment-new-customer"),cancel=$(this).hasClass("edd-payment-new-customer-cancel");new_customer?($(".customer-info").hide(),$(".new-customer").show()):cancel&&($(".customer-info").show(),$(".new-customer").hide());new_customer=$("#edd-new-customer");$(".new-customer").is(":visible")?new_customer.val(1):new_customer.val(0)})},add_download:function(){$(".edd-edit-purchase-element").on("click","#edd-order-add-download",function(e){e.preventDefault();var order_download_select=$("#edd_order_download_select"),order_download_quantity=$("#edd-order-download-quantity"),order_download_price=$("#edd-order-download-price"),order_download_tax=$("#edd-order-download-tax"),selected_price_option=$(".edd_price_options_select option:selected"),download_id=order_download_select.val(),download_title=order_download_select.find(":selected").text(),quantity=order_download_quantity.val(),item_price=order_download_price.val(),item_tax=order_download_tax.val(),price_id=selected_price_option.val(),price_name=selected_price_option.text();if(download_id<1)return!1;if(item_price||(item_price=0),item_price=parseFloat(item_price),isNaN(item_price))return alert(edd_vars.numeric_item_price),!1;if(item_tax=parseFloat(item_tax),isNaN(item_tax))return alert(edd_vars.numeric_item_tax),!1;if(isNaN(parseInt(quantity)))return alert(edd_vars.numeric_quantity),!1;price_name&&(download_title=download_title+" - "+price_name);var count=$("#edd-purchased-files div.row").length,clone=$("#edd-purchased-files div.row:last").clone();clone.find(".download span").html('<a href="post.php?post='+download_id+'&action=edit"></a>'),clone.find(".download span a").text(download_title),clone.find(".edd-payment-details-download-item-price").val(item_price.toFixed(edd_vars.currency_decimals)),clone.find(".edd-payment-details-download-item-tax").val(item_tax.toFixed(edd_vars.currency_decimals)),clone.find("input.edd-payment-details-download-id").val(download_id),clone.find("input.edd-payment-details-download-price-id").val(price_id);var item_total=item_price*quantity+item_tax;item_total=item_total.toFixed(edd_vars.currency_decimals),clone.find("span.edd-payment-details-download-amount").text(item_total),clone.find("input.edd-payment-details-download-amount").val(item_total),clone.find("input.edd-payment-details-download-quantity").val(quantity),clone.find("input.edd-payment-details-download-has-log").val(0),clone.find(".edd-copy-download-link-wrapper").remove(),clone.find("input").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+parseInt(count)+"]"),$(this).attr("name",name).attr("id",name)}),clone.find("a.edd-order-remove-download").attr("data-key",parseInt(count)),$("#edd-payment-downloads-changed").val(1),$(clone).insertAfter("#edd-purchased-files div.row:last"),$(".edd-order-payment-recalc-totals").show(),$(".edd-add-download-field").val("")})},edit_price:function(){$(document.body).on("change keyup",".edd-payment-item-input",function(){var row=$(this).parents("ul.edd-purchased-files-list-wrapper");$(".edd-order-payment-recalc-totals").show();var quantity=row.find("input.edd-payment-details-download-quantity").val().replace(edd_vars.thousands_separator,""),item_price=row.find("input.edd-payment-details-download-item-price").val().replace(edd_vars.thousands_separator,""),item_tax=row.find("input.edd-payment-details-download-item-tax").val().replace(edd_vars.thousands_separator,"");if(item_price=parseFloat(item_price),isNaN(item_price))return alert(edd_vars.numeric_item_price),!1;item_tax=parseFloat(item_tax),isNaN(item_tax)&&(item_tax=0),isNaN(parseInt(quantity))&&(quantity=1);var item_total=item_price*quantity+item_tax;item_total=item_total.toFixed(edd_vars.currency_decimals),row.find("input.edd-payment-details-download-amount").val(item_total),row.find("span.edd-payment-details-download-amount").text(item_total)})},recalculate_total:function(){$("#edd-order-recalc-total").on("click",function(e){e.preventDefault();var total=0,tax=0,totals=$("#edd-purchased-files .row input.edd-payment-details-download-amount"),taxes=$("#edd-purchased-files .row input.edd-payment-details-download-item-tax");totals.length&&totals.each(function(){total+=parseFloat($(this).val())}),taxes.length&&taxes.each(function(){tax+=parseFloat($(this).val())}),$(".edd-payment-fees").length&&$(".edd-payment-fees span.fee-amount").each(function(){total+=parseFloat($(this).data("fee"))}),$("input[name=edd-payment-total]").val(total.toFixed(edd_vars.currency_decimals)),$("input[name=edd-payment-tax]").val(tax.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){$(".edd-edit-purchase-element").on("change","select#edd_order_download_select",function(){var $this=$(this),download_id=$this.val();if(0<parseInt(download_id)){var postData={action:"edd_check_for_download_price_variations",download_id:download_id};$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){$(".edd_price_options_select").remove(),$(response).insertAfter($this.next())}}).fail(function(data){window.console&&window.console.log&&console.log(data)})}})},add_note:function(){$("#edd-add-payment-note").on("click",function(e){e.preventDefault();var postData={action:"edd_insert_payment_note",payment_id:$(this).data("payment-id"),note:$("#edd-payment-note").val()};if(postData.note)$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){$("#edd-payment-notes-inner").append(response),$(".edd-no-payment-notes").hide(),$("#edd-payment-note").val("")}}).fail(function(data){window.console&&window.console.log&&console.log(data)});else{var border_color=$("#edd-payment-note").css("border-color");$("#edd-payment-note").css("border-color","red"),setTimeout(function(){$("#edd-payment-note").css("border-color",border_color)},500)}})},remove_note:function(){$(document.body).on("click",".edd-delete-payment-note",function(e){if(e.preventDefault(),confirm(edd_vars.delete_payment_note)){var postData={action:"edd_delete_payment_note",payment_id:$(this).data("payment-id"),note_id:$(this).data("note-id")};return $.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){return $("#edd-payment-note-"+postData.note_id).remove(),$(".edd-payment-note").length||$(".edd-no-payment-notes").show(),!1}}).fail(function(data){window.console&&window.console.log&&console.log(data)}),!0}})},resend_receipt:function(){var emails_wrap=$(".edd-order-resend-receipt-addresses");$(document.body).on("click","#edd-select-receipt-email",function(e){e.preventDefault(),emails_wrap.slideDown()}),$(document.body).on("change",".edd-order-resend-receipt-email",function(){var href=$("#edd-select-receipt-email").prop("href")+"&email="+$(this).val();confirm(edd_vars.resend_receipt)&&(window.location=href)}),$(document.body).on("click","#edd-resend-receipt",function(e){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){$(document.body).on("click",".edd-copy-download-link",function(e){e.preventDefault();var $this=$(this),postData={action:"edd_get_file_download_link",payment_id:$('input[name="edd_payment_id"]').val(),download_id:$this.data("download-id"),price_id:$this.data("price-id")};$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(link){return $("#edd-download-link").dialog({width:400}).html('<textarea rows="10" cols="40" id="edd-download-link-textarea">'+link+"</textarea>"),$("#edd-download-link-textarea").focus().select(),!1}}).fail(function(data){window.console&&window.console.log&&console.log(data)})})}}).init(),{init:function(){this.type_select(),this.product_requirements()},type_select:function(){$("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){var val=$(this).val();$(".edd-amount-description").hide(),$(".edd-amount-description."+val+"-discount").show()})},product_requirements:function(){$("#products").change(function(){var product_conditions=$("#edd-discount-product-conditions");$(this).val()?product_conditions.show():product_conditions.hide()})}}.init(),{init:function(){this.date_options(),this.customers_export()},date_options:function(){$("#edd-graphs-date-options").change(function(){var $this=$(this),date_range_options=$("#edd-date-range-options");"other"===$this.val()?date_range_options.show():date_range_options.hide()})},customers_export:function(){$("#edd_customer_export_download").change(function(){var $this=$(this),download_id=$("option:selected",$this).val(),customer_export_option=$("#edd_customer_export_option");if("0"===$this.val()?customer_export_option.show():customer_export_option.hide(),0!=parseInt(download_id)){var data={action:"edd_check_for_download_price_variations",download_id:download_id,all_prices:!0},price_options_select=$(".edd_price_options_select");$.post(ajaxurl,data,function(response){price_options_select.remove(),$("#edd_customer_export_download_chosen").after(response)})}else price_options_select.remove()})}}.init(),{init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var edd_color_picker=$(".edd-color-picker");if(edd_color_picker.length&&edd_color_picker.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var edd_settings_upload_button=$(".edd_settings_upload_button");0<edd_settings_upload_button.length&&(window.formfield="",$(document.body).on("click",edd_settings_upload_button,function(e){e.preventDefault(),window.formfield=$(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),tb_show(edd_vars.add_new_download,"media-upload.php?TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(html){window.formfield?(imgurl=$("a","<div>"+html+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(html),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var file_frame;window.formfield="",$(document.body).on("click",".edd_settings_upload_button",function(e){e.preventDefault();var button=$(this);window.formfield=$(this).parent().prev(),file_frame||((file_frame=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:button.data("uploader_title"),button:{text:button.data("uploader_button_text")},multiple:!1})).on("menu:render:default",function(view){view.unset("library-separator"),view.unset("gallery"),view.unset("featured-image"),view.unset("embed"),view.set({})}),file_frame.on("insert",function(){file_frame.state().get("selection").each(function(attachment,index){attachment=attachment.toJSON(),window.formfield.val(attachment.url)})})),file_frame.open()}),window.formfield=""}},taxes:function(){var no_states=$("select.edd-no-states");no_states.length&&no_states.closest("tr").addClass("hidden"),$('select[name="edd_settings[base_country]"]').change(function(){var $tr=$(this).closest("tr"),data={action:"edd_get_shop_states",country:$(this).val(),field_name:"edd_settings[base_state]"};return $.post(ajaxurl,data,function(response){"nostates"==response?$tr.next().addClass("hidden"):($tr.next().removeClass("hidden"),$tr.next().find("select").replaceWith(response))}),!1}),$(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var $this=$(this),data={action:"edd_get_shop_states",country:$(this).val(),field_name:$this.attr("name").replace("country","state")};return $.post(ajaxurl,data,function(response){if("nostates"==response){var text_field='<input type="text" name="'+data.field_name+'" value=""/>';$this.parent().next().find("select").replaceWith(text_field)}else $this.parent().next().find("input,select").show(),$this.parent().next().find("input,select").replaceWith(response)}),!1}),$("#edd_add_tax_rate").on("click",function(){var row=$("#edd_tax_rates tr:last"),clone=row.clone(),count=row.parent().find("tr").length;return clone.find("td input").not(":input[type=checkbox]").val(""),clone.find('td [type="checkbox"]').attr("checked",!1),clone.find("input, select").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+parseInt(count)+"]"),$(this).attr("name",name).attr("id",name)}),clone.find("label").each(function(){var name=$(this).attr("for");name=name.replace(/\[(\d+)\]/,"["+parseInt(count)+"]"),$(this).attr("for",name)}),clone.insertAfter(row),!1}),$(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){confirm(edd_vars.delete_tax_rate)&&(2===$("#edd_tax_rates tr:visible").length?($("#edd_tax_rates select").val(""),$('#edd_tax_rates input[type="text"]').val(""),$('#edd_tax_rates input[type="number"]').val(""),$('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):$(this).closest("tr").remove(),$("#edd_tax_rates tr").each(function(rowIndex){$(this).children().find("input, select").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+(rowIndex-1)+"]"),$(this).attr("name",name).attr("id",name)})}));return!1})},emails:function(){var email_preview_wrap=$("#email-preview-wrap");if(email_preview_wrap.length){var emailPreview=$("#email-preview");email_preview_wrap.colorbox({inline:!0,href:emailPreview,width:"80%",height:"auto"})}},misc:function(){var downloadMethod=$('select[name="edd_settings[download_method]"]'),symlink=downloadMethod.parent().parent().next();"direct"==downloadMethod.val()&&(symlink.hide(),symlink.find("input").prop("checked",!1)),downloadMethod.on("change",function(){"direct"==$(this).val()?(symlink.hide(),symlink.find("input").prop("checked",!1)):symlink.show()})}}.init(),$(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return!!confirm(edd_vars.delete_payment)}),$("body").on("click","#the-list .editinline",function(){var post_id=$(this).closest("tr").attr("id");post_id=post_id.replace("post-","");var regprice=$("#post-"+post_id).find(".column-price .downloadprice-"+post_id).val();regprice!=$("#post-"+post_id+".column-price .downloadprice-"+post_id).val()?$(".regprice","#edd-download-data").val(regprice).attr("disabled",!1):$(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),$(document.body).on("click","#bulk_edit",function(){var $bulk_row=$("#bulk-edit"),$post_ids=new Array;$bulk_row.find("#bulk-titles").children().each(function(){$post_ids.push($(this).attr("id").replace(/^(ttle)/i,""))});var $price=$('#edd-download-data input[name="_edd_regprice"]').val(),data={action:"edd_save_bulk_edit",edd_bulk_nonce:$post_ids,post_ids:$post_ids,price:$price};$.post(ajaxurl,data)}),$(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),$(".edd-select-chosen .chosen-search input").each(function(){var selectElem=$(this).parent().parent().parent().prev("select.edd-select-chosen"),placeholder=(selectElem.data("search-type"),selectElem.data("search-placeholder"));$(this).attr("placeholder",placeholder)}),$(".chosen-choices").on("click",function(){var placeholder=$(this).parent().prev().data("search-placeholder");void 0===placeholder&&(placeholder=edd_vars.type_to_search),$(this).children("li").children("input").attr("placeholder",placeholder)});$(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(e){var val=$(this).val(),container=$(this).closest(".edd-select-chosen"),select=(container.attr("id").replace("_chosen",""),container.prev()),no_bundles=container.hasClass("no-bundles"),variations=container.hasClass("variations"),lastKey=e.which,search_type="edd_download_search";if(container.prev().data("search-type")){if("no_ajax"==select.data("search-type"))return;search_type="edd_"+select.data("search-type")+"_search"}val.length<=3&&"edd_download_search"==search_type||16==lastKey||13==lastKey||91==lastKey||17==lastKey||37==lastKey||38==lastKey||39==lastKey||40==lastKey||(clearTimeout(typingTimer),typingTimer=setTimeout(function(){$.ajax({type:"GET",url:ajaxurl,data:{action:search_type,s:val,no_bundles:no_bundles,variations:variations},dataType:"json",beforeSend:function(){select.closest("ul.chosen-results").empty()},success:function(data){$("option:not(:selected)",select).remove(),$.each(data,function(key,item){$('option[value="'+item.id+'"]',select).length||select.prepend('<option value="'+item.id+'">'+item.name+"</option>")}),$(".edd-select-chosen").trigger("chosen:updated"),select.next().find("input").val(val)}}).fail(function(response){window.console&&window.console.log&&console.log(response)}).done(function(response){})},342))}),$("#post").on("click",".edd-thickbox",function(){$(".edd-select-chosen","#choose-download").css("width","100%")}),{init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){$(document.body).on("click",".edd-revoke-api-key",function(e){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){$(document.body).on("click",".edd-regenerate-api-key",function(e){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){$(document.body).on("submit","#api-key-generate-form",function(e){var input=$('input[type="text"][name="user_id"]');input.css("border-color","#ddd");var user_id=input.val();if(user_id.length<1||0==user_id)return input.css("border-color","#ff0000"),!1})},recount_stats:function(){$(document.body).on("change","#recount-stats-type",function(){var export_form=$("#edd-tools-recount-form"),selected_type=$("option:selected",this).data("type"),submit_button=$("#recount-stats-submit"),products=$("#tools-product-dropdown");if(export_form.find(".notice-wrap").remove(),submit_button.removeClass("button-disabled").attr("disabled",!1),products.hide(),$(".edd-recount-stats-descriptions span").hide(),"recount-download"===selected_type)products.show(),products.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===selected_type){export_form.append('<div class="notice-wrap"></div>'),export_form.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+edd_vars.reset_stats_warn+"</label></p></div>"),$("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else products.hide(),products.val(0);$("#"+selected_type).show()}),$(document.body).on("change","#confirm-reset",function(){$(this).is(":checked")?$("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):$("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),$("#edd-tools-recount-form").submit(function(e){var selection=$("#recount-stats-type").val(),export_form=$(this),selected_type=$("option:selected",this).data("type");if("reset-stats"===selected_type){if($("#confirm-reset").is(":checked"))return!0;has_errors=!0}export_form.find(".notice-wrap").remove(),export_form.append('<div class="notice-wrap"></div>');var notice_wrap=export_form.find(".notice-wrap"),has_errors=!1;(null!==selection&&0!==selection||(notice_wrap.html('<div class="updated error"><p>'+edd_vars.batch_export_no_class+"</p></div>"),has_errors=!0),"recount-download"===selected_type)&&(0==$('select[name="download_id"]').val()&&(notice_wrap.html('<div class="updated error"><p>'+edd_vars.batch_export_no_reqs+"</p></div>"),has_errors=!0));if(has_errors)return export_form.find(".button-disabled").removeClass("button-disabled"),!1})}}.init(),{init:function(){this.submit(),this.dismiss_message()},submit:function(){var self=this;$(document.body).on("submit",".edd-export-form",function(e){e.preventDefault();var submitButton=$(this).find('input[type="submit"]');if(!submitButton.hasClass("button-disabled")){var data=$(this).serialize();submitButton.addClass("button-disabled"),$(this).find(".notice-wrap").remove(),$(this).append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),self.process_step(1,data,self)}})},process_step:function(step,data,self){$.ajax({type:"POST",url:ajaxurl,data:{form:data,action:"edd_do_ajax_export",step:step},dataType:"json",success:function(response){if("done"==response.step||response.error||response.success){var export_form=$(".edd-export-form").find(".edd-progress").parent().parent(),notice_wrap=export_form.find(".notice-wrap");if(export_form.find(".button-disabled").removeClass("button-disabled"),response.error){var error_message=response.message;notice_wrap.html('<div class="updated error"><p>'+error_message+"</p></div>")}else if(response.success){var success_message=response.message;notice_wrap.html('<div id="edd-batch-success" class="updated notice is-dismissible"><p>'+success_message+'<span class="notice-dismiss"></span></p></div>')}else notice_wrap.remove(),window.location=response.url}else $(".edd-progress div").animate({width:response.percentage+"%"},50,function(){}),self.process_step(parseInt(response.step),data,self)}}).fail(function(response){window.console&&window.console.log&&console.log(response)})},dismiss_message:function(){$(document.body).on("click","#edd-batch-success .notice-dismiss",function(){$("#edd-batch-success").parent().slideUp("fast")})}}.init();var EDD_Import={init:function(){this.submit()},submit:function(){$(".edd-import-form").ajaxForm({beforeSubmit:this.before_submit,success:this.success,complete:this.complete,dataType:"json",error:this.error})},before_submit:function(arr,$form,options){if($form.find(".notice-wrap").remove(),$form.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var import_form=$(".edd-import-form").find(".edd-progress").parent().parent(),notice_wrap=import_form.find(".notice-wrap");return import_form.find(".button-disabled").removeClass("button-disabled"),notice_wrap.html('<div class="update error"><p>'+edd_vars.unsupported_browser+"</p></div>"),!1}},success:function(responseText,statusText,xhr,$form){},complete:function(xhr){var response=jQuery.parseJSON(xhr.responseText);if(response.success){var $form=$(".edd-import-form .notice-wrap").parent();$form.find(".edd-import-file-wrap,.notice-wrap").remove(),$form.find(".edd-import-options").slideDown();var select=$form.find("select.edd-import-csv-column"),options=(select.parents("tr").first(),""),columns=response.data.columns.sort(function(a,b){return a<b?-1:b<a?1:0});$.each(columns,function(key,value){options+='<option value="'+value+'">'+value+"</option>"}),select.append(options),select.on("change",function(){var $key=$(this).val();$key&&0!=response.data.first_row[$key]?$(this).parent().next().html(response.data.first_row[$key]):$(this).parent().next().html("")}),$.each(select,function(){$(this).val($(this).attr("data-field")).change()}),$(document.body).on("click",".edd-import-proceed",function(e){e.preventDefault(),$form.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),response.data.mapping=$form.serialize(),EDD_Import.process_step(1,response.data,self)})}else EDD_Import.error(xhr)},error:function(xhr){var response=jQuery.parseJSON(xhr.responseText),import_form=$(".edd-import-form").find(".edd-progress").parent().parent(),notice_wrap=import_form.find(".notice-wrap");import_form.find(".button-disabled").removeClass("button-disabled"),response.data.error?notice_wrap.html('<div class="update error"><p>'+response.data.error+"</p></div>"):notice_wrap.remove()},process_step:function(step,import_data,self){$.ajax({type:"POST",url:ajaxurl,data:{form:import_data.form,nonce:import_data.nonce,class:import_data.class,upload:import_data.upload,mapping:import_data.mapping,action:"edd_do_ajax_import",step:step},dataType:"json",success:function(response){if("done"==response.data.step||response.data.error){var import_form=$(".edd-import-form").find(".edd-progress").parent().parent(),notice_wrap=import_form.find(".notice-wrap");import_form.find(".button-disabled").removeClass("button-disabled"),response.data.error?notice_wrap.html('<div class="update error"><p>'+response.data.error+"</p></div>"):(import_form.find(".edd-import-options").hide(),$("html, body").animate({scrollTop:import_form.parent().offset().top},500),notice_wrap.html('<div class="updated"><p>'+response.data.message+"</p></div>"))}else $(".edd-progress div").animate({width:response.data.percentage+"%"},50,function(){}),EDD_Import.process_step(parseInt(response.data.step),import_data,self)}}).fail(function(response){window.console&&window.console.log&&console.log(response)})}};EDD_Import.init();var EDD_Customer={vars:{customer_card_wrap_editable:$(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:$(".edd-customer-card-wrapper .edit-item"),user_id:$('input[name="customerinfo[user_id]"]'),state_input:$(':input[name="customerinfo[state]"]'),note:$("#customer-note")},init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){$(document.body).on("click","#edit-customer",function(e){e.preventDefault(),EDD_Customer.vars.customer_card_wrap_editable.hide(),EDD_Customer.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){$(document.body).on("click","#add-customer-email",function(e){e.preventDefault();var button=$(this),wrapper=button.parent();wrapper.parent().find(".notice-container").remove(),wrapper.find(".spinner").css("visibility","visible"),button.attr("disabled",!0);var postData={edd_action:"customer-add-email",customer_id:wrapper.find('input[name="customer-id"]').val(),email:wrapper.find('input[name="additional-email"]').val(),primary:wrapper.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:wrapper.find('input[name="add_email_nonce"]').val()};$.post(ajaxurl,postData,function(response){!0===response.success?window.location.href=response.redirect:(button.attr("disabled",!1),wrapper.after('<div class="notice-container"><div class="notice notice-error inline"><p>'+response.message+"</p></div></div>"),wrapper.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){$(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(e){e.preventDefault();var user_id=$(this).data("userid");EDD_Customer.vars.user_id.val(user_id)})},remove_user:function(){$(document.body).on("click","#disconnect-customer",function(e){if(e.preventDefault(),confirm(edd_vars.disconnect_customer)){var postData={edd_action:"disconnect-userid",customer_id:$('input[name="customerinfo[id]"]').val(),_wpnonce:$("#edit-customer-info #_wpnonce").val()};$.post(ajaxurl,postData,function(response){window.location.href=window.location.href},"json")}})},cancel_edit:function(){$(document.body).on("click","#edd-edit-customer-cancel",function(e){e.preventDefault(),EDD_Customer.vars.customer_card_wrap_edit_item.hide(),EDD_Customer.vars.customer_card_wrap_editable.show(),$(".edd_user_search_results").html("")})},change_country:function(){$('select[name="customerinfo[country]"]').change(function(){var data={action:"edd_get_shop_states",country:$(this).val(),field_name:"customerinfo[state]"};return $.post(ajaxurl,data,function(response){"nostates"==response?EDD_Customer.vars.state_input.replaceWith('<input type="text" name="'+data.field_name+'" value="" class="edd-edit-toggles medium-text"/>'):EDD_Customer.vars.state_input.replaceWith(response)}),!1})},add_note:function(){$(document.body).on("click","#add-customer-note",function(e){e.preventDefault();var postData={edd_action:"add-customer-note",customer_id:$("#customer-id").val(),customer_note:EDD_Customer.vars.note.val(),add_customer_note_nonce:$("#add_customer_note_nonce").val()};if(postData.customer_note)$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){$("#edd-customer-notes").prepend(response),$(".edd-no-customer-notes").hide(),EDD_Customer.vars.note.val("")}}).fail(function(data){window.console&&window.console.log&&console.log(data)});else{var border_color=EDD_Customer.vars.note.css("border-color");EDD_Customer.vars.note.css("border-color","red"),setTimeout(function(){EDD_Customer.vars.note.css("border-color",border_color)},500)}})},delete_checked:function(){$("#edd-customer-delete-confirm").change(function(){var records_input=$("#edd-customer-delete-records"),submit_button=$("#edd-delete-customer");$(this).prop("checked")?(records_input.attr("disabled",!1),submit_button.attr("disabled",!1)):(records_input.attr("disabled",!0),records_input.prop("checked",!1),submit_button.attr("disabled",!0))})}};EDD_Customer.init(),$(".edd-ajax-user-search").keyup(function(){var user_search=$(this).val(),exclude="";$(this).data("exclude")&&(exclude=$(this).data("exclude")),$(".edd-ajax").show();var data={action:"edd_search_users",user_name:user_search,exclude:exclude};document.body.style.cursor="wait",$.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(search_response){$(".edd-ajax").hide(),$(".edd_user_search_results").removeClass("hidden"),$(".edd_user_search_results span").html(""),$(search_response.results).appendTo(".edd_user_search_results span"),document.body.style.cursor="default"}})}),$(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(e){e.preventDefault();var login=$(this).data("login");$(".edd-ajax-user-search").val(login),$(".edd_user_search_results").addClass("hidden"),$(".edd_user_search_results span").html("")}),$(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(e){e.preventDefault(),$(".edd-ajax-user-search").val(""),$(".edd_user_search_results").addClass("hidden"),$(".edd_user_search_results span").html("")}),$("#edd_dashboard_sales").length&&$.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(response){$("#edd_dashboard_sales .inside").html(response)}}),$(document.body).on("keydown",".customer-note-input",function(e){13==e.keyCode&&(e.metaKey||e.ctrlKey)&&$("#add-customer-note").click()})});var eddFormatCurrency=function(value){var numeric=parseFloat(value),storeCurrency=edd_vars.currency,decimalPlaces=edd_vars.currency_decimals;return numeric.toLocaleString(storeCurrency,{style:"currency",currency:storeCurrency,minimumFractionDigits:decimalPlaces,maximumFractionDigits:decimalPlaces})},eddFormatNumber=function(value){var numeric=parseFloat(value),storeCurrency=edd_vars.currency;edd_vars.currency_decimals;return numeric.toLocaleString(storeCurrency,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(label,series){return'<div style="font-size:12px; text-align:center; padding:2px">'+label+"</div>"},eddLegendFormatterSales=function(label,series){var slug=label.toLowerCase().replace(/\s/g,"-"),color='<div class="edd-legend-color" style="background-color: '+series.color+'"></div>',value='<div class="edd-pie-legend-item">'+label+": "+Math.round(series.percent)+"% ("+eddFormatNumber(series.data[0][1])+")</div>",item='<div id="'+series.edd_vars.id+slug+'" class="edd-legend-item-wrapper">'+color+value+"</div>";return jQuery("#edd-pie-legend-"+series.edd_vars.id).append(item),item},eddLegendFormatterEarnings=function(label,series){var slug=label.toLowerCase().replace(/\s/g,"-"),color='<div class="edd-legend-color" style="background-color: '+series.color+'"></div>',value='<div class="edd-pie-legend-item">'+label+": "+Math.round(series.percent)+"% ("+eddFormatCurrency(series.data[0][1])+")</div>",item='<div id="'+series.edd_vars.id+slug+'" class="edd-legend-item-wrapper">'+color+value+"</div>";return jQuery("#edd-pie-legend-"+series.edd_vars.id).append(item),item};function edd_attach_tooltips(selector){selector.tooltip({content:function(){return jQuery(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})}
1
+ jQuery(document).ready(function($){edd_attach_tooltips($(".edd-help-tip"));var EDD_Download_Configuration={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(row){var key=highest=1;return row.parent().find(".edd_repeatable_row").each(function(){var current=$(this).data("key");parseInt(current)>highest&&(highest=current)}),key=highest+=1,clone=row.clone(),clone.removeClass("edd_add_blank"),clone.attr("data-key",key),clone.find("input, select, textarea").val("").each(function(){var name=$(this).attr("name"),id=$(this).attr("id");name&&(name=name.replace(/\[(\d+)\]/,"["+parseInt(key)+"]"),$(this).attr("name",name)),$(this).attr("data-key",key),void 0!==id&&(id=id.replace(/(\d+)/,parseInt(key)),$(this).attr("id",id))}),clone.find("select").each(function(){$(this).val(row.find('select[name="'+$(this).attr("name")+'"]').val())}),clone.find('input[type="checkbox"]').each(function(){$(this).is(":checked")&&$(this).prop("checked",!1),$(this).val(1)}),clone.find("span.edd_price_id").each(function(){$(this).text(parseInt(key))}),clone.find("span.edd_file_id").each(function(){$(this).text(parseInt(key))}),clone.find(".edd_repeatable_default_input").each(function(){$(this).val(parseInt(key)).removeAttr("checked")}),clone.find(".edd_repeatable_condition_field").each(function(){$(this).find("option:eq(0)").prop("selected","selected")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),edd_attach_tooltips(clone.find(".edd-help-tip")),clone},add:function(){$(document.body).on("click",".submit .edd_add_repeatable",function(e){e.preventDefault();var row=$(this).parent().parent().prev(".edd_repeatable_row"),clone=EDD_Download_Configuration.clone_repeatable(row);clone.insertAfter(row).find("input, textarea, select").filter(":visible").eq(0).focus(),clone.find(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),clone.find(".edd-select-chosen").css("width","100%"),clone.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){$(".edd_repeatable_table .edd-repeatables-wrap").sortable({handle:".edd-draghandle-anchor",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var count=0;$(this).find(".edd_repeatable_row").each(function(){$(this).find("input.edd_repeatable_index").each(function(){$(this).val(count)}),count++})}})},remove:function(){$(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",function(e){e.preventDefault();var firstFocusable,row=$(this).parents(".edd_repeatable_row"),count=row.parent().find(".edd_repeatable_row").length,type=$(this).data("type"),repeatable="div.edd_repeatable_"+type+"s";if(firstFocusable=($(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?row.next(".edd_repeatable_row"):row.prev(".edd_repeatable_row")).find("select, input, textarea, button").filter(":visible").eq(0),"price"===type){var price_row_id=row.data("key");$('.edd_repeatable_condition_field option[value="'+price_row_id+'"]').remove()}if(1<count)$("input, select",row).val(""),row.fadeOut("fast").remove(),firstFocusable.focus();else switch(type){case"price":alert(edd_vars.one_price_min);break;case"file":$("input, select",row).val("");break;default:alert(edd_vars.one_field_min)}$(repeatable).each(function(rowIndex){$(this).find("input, select").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+rowIndex+"]"),$(this).attr("name",name).attr("id",name)})})})},type:function(){$(document.body).on("change","#_edd_product_type",function(e){var edd_products=$("#edd_products"),edd_download_files=$("#edd_download_files"),edd_download_limit_wrap=$("#edd_download_limit_wrap");"bundle"===$(this).val()?(edd_products.show(),edd_download_files.hide(),edd_download_limit_wrap.hide()):(edd_products.hide(),edd_download_files.show(),edd_download_limit_wrap.show())})},prices:function(){$(document.body).on("change","#edd_variable_pricing",function(e){var checked=$(this).is(":checked"),single=$("#edd_regular_price_field"),variable=$("#edd_variable_price_fields, .edd_repeatable_table .pricing"),bundleRow=$(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");checked?(single.hide(),variable.show(),bundleRow.addClass("has-variable-pricing")):(single.show(),variable.hide(),bundleRow.removeClass("has-variable-pricing"))})},files:function(){var file_frame;window.formfield="",$(document.body).on("click",".edd_upload_file_button",function(e){e.preventDefault();var button=$(this);window.formfield=$(this).closest(".edd_repeatable_upload_wrapper"),file_frame||((file_frame=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:button.data("uploader-title"),button:{text:button.data("uploader-button-text")},multiple:"0"!=$(this).data("multiple")})).on("menu:render:default",function(view){view.unset("library-separator"),view.unset("gallery"),view.unset("featured-image"),view.unset("embed"),view.set({})}),file_frame.on("insert",function(){file_frame.state().get("selection").each(function(attachment,index){var selectedSize="image"===(attachment=attachment.toJSON()).type&&$(".attachment-display-settings .size option:selected").val(),selectedURL=attachment.url,selectedName=0<attachment.title.length?attachment.title:attachment.filename;if(selectedSize&&void 0!==attachment.sizes[selectedSize]&&(selectedURL=attachment.sizes[selectedSize].url),"image"===attachment.type&&(selectedName=selectedSize&&void 0!==attachment.sizes[selectedSize]?selectedName+"-"+attachment.sizes[selectedSize].width+"x"+attachment.sizes[selectedSize].height:selectedName+"-"+attachment.width+"x"+attachment.height),0===index)window.formfield.find(".edd_repeatable_attachment_id_field").val(attachment.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(selectedSize),window.formfield.find(".edd_repeatable_upload_field").val(selectedURL),window.formfield.find(".edd_repeatable_name_field").val(selectedName);else{var row=window.formfield,clone=EDD_Download_Configuration.clone_repeatable(row);clone.find(".edd_repeatable_attachment_id_field").val(attachment.id),clone.find(".edd_repeatable_thumbnail_size_field").val(selectedSize),clone.find(".edd_repeatable_upload_field").val(selectedURL),clone.find(".edd_repeatable_name_field").val(selectedName),clone.insertAfter(row)}})})),file_frame.open()}),window.formfield=""},updatePrices:function(){$("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var key=$(this).parents(".edd_repeatable_row").data("key"),name=$(this).val(),field_option=$(".edd_repeatable_condition_field option[value="+key+"]");0<field_option.length?field_option.text(name):$(".edd_repeatable_condition_field").append($("<option></option>").attr("value",key).text(name))})}};$(document.body).on("click",".toggle-custom-price-option-section",function(e){e.preventDefault();var show=$(this).html()==edd_vars.show_advanced_settings;show?$(this).html(edd_vars.hide_advanced_settings):$(this).html(edd_vars.show_advanced_settings);var header=$(this).parents(".edd-repeatable-row-header");header.siblings(".edd-custom-price-option-sections-wrap").slideToggle(),$(":input:not(input[type=button],input[type=submit],button):visible:first",show?header.siblings(".edd-custom-price-option-sections-wrap"):header.siblings(".edd-repeatable-row-standard-fields")).focus()}),EDD_Download_Configuration.init();var typingTimer,edd_datepicker=$(".edd_datepicker");if(0<edd_datepicker.length){edd_datepicker.datepicker({dateFormat:"mm/dd/yy"})}({init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.change_customer(),this.new_customer(),this.edit_price(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){$('select[name="edd-payment-address[0][country]"]').change(function(){var $this=$(this),data={action:"edd_get_shop_states",country:$this.val(),nonce:$this.data("nonce"),field_name:"edd-payment-address[0][state]"};return $.post(ajaxurl,data,function(response){var state_wrapper=$("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");$("#edd-order-address-state-wrap .chosen-container").remove(),"nostates"==response?state_wrapper.replaceWith('<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>'):state_wrapper.replaceWith(response)}),!1})},remove_download:function(){$("#edd-purchased-files").on("click",".edd-order-remove-download",function(){if(1===$(document.body).find("#edd-purchased-files > .row:not(.header)").length)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var key=$(this).data("key"),download_id=($(".edd-payment-id").val(),$('input[name="edd-payment-details-downloads['+key+'][id]"]').val()),price_id=$('input[name="edd-payment-details-downloads['+key+'][price_id]"]').val(),quantity=$('input[name="edd-payment-details-downloads['+key+'][quantity]"]').val(),amount=$('input[name="edd-payment-details-downloads['+key+'][amount]"]').val();if($('input[name="edd-payment-details-downloads['+key+'][tax]"]'))var fees=$('input[name="edd-payment-details-downloads['+key+'][tax]"]').val();if($('input[name="edd-payment-details-downloads['+key+'][fees]"]'))fees=$.parseJSON($('input[name="edd-payment-details-downloads['+key+'][fees]"]').val());var currently_removed=$('input[name="edd-payment-removed"]').val();(currently_removed=$.parseJSON(currently_removed)).length<1&&(currently_removed={});var removed_item=[{id:download_id,price_id:price_id,quantity:quantity,amount:amount,cart_index:key}];currently_removed[key]=removed_item,$('input[name="edd-payment-removed"]').val(JSON.stringify(currently_removed)),$(this).parent().parent().remove(),fees&&fees.length&&$.each(fees,function(key,value){$('*li[data-fee-id="'+value+'"]').remove()}),$("#edd-payment-downloads-changed").val(1),$(".edd-order-payment-recalc-totals").show()}return!1})},change_customer:function(){$("#edd-customer-details").on("click",".edd-payment-change-customer, .edd-payment-change-customer-cancel",function(e){e.preventDefault();var change_customer=$(this).hasClass("edd-payment-change-customer"),cancel=$(this).hasClass("edd-payment-change-customer-cancel");change_customer?($(".customer-info").hide(),$(".change-customer").show(),$(".edd-payment-change-customer-input").css("width","auto")):cancel&&($(".customer-info").show(),$(".change-customer").hide())})},new_customer:function(){$("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(e){e.preventDefault();var new_customer=$(this).hasClass("edd-payment-new-customer"),cancel=$(this).hasClass("edd-payment-new-customer-cancel");new_customer?($(".customer-info").hide(),$(".new-customer").show()):cancel&&($(".customer-info").show(),$(".new-customer").hide());new_customer=$("#edd-new-customer");$(".new-customer").is(":visible")?new_customer.val(1):new_customer.val(0)})},add_download:function(){$(".edd-edit-purchase-element").on("click","#edd-order-add-download",function(e){e.preventDefault();var order_download_select=$("#edd_order_download_select"),order_download_quantity=$("#edd-order-download-quantity"),order_download_price=$("#edd-order-download-price"),order_download_tax=$("#edd-order-download-tax"),selected_price_option=$(".edd_price_options_select option:selected"),download_id=order_download_select.val(),download_title=order_download_select.find(":selected").text(),quantity=order_download_quantity.val(),item_price=order_download_price.val(),item_tax=order_download_tax.val(),price_id=selected_price_option.val(),price_name=selected_price_option.text();if(download_id<1)return!1;if(item_price||(item_price=0),item_price=parseFloat(item_price),isNaN(item_price))return alert(edd_vars.numeric_item_price),!1;if(item_tax=parseFloat(item_tax),isNaN(item_tax))return alert(edd_vars.numeric_item_tax),!1;if(isNaN(parseInt(quantity)))return alert(edd_vars.numeric_quantity),!1;price_name&&(download_title=download_title+" - "+price_name);var count=$("#edd-purchased-files div.row").length,clone=$("#edd-purchased-files div.row:last").clone();clone.find(".download span").html('<a href="post.php?post='+download_id+'&action=edit"></a>'),clone.find(".download span a").text(download_title),clone.find(".edd-payment-details-download-item-price").val(item_price.toFixed(edd_vars.currency_decimals)),clone.find(".edd-payment-details-download-item-tax").val(item_tax.toFixed(edd_vars.currency_decimals)),clone.find("input.edd-payment-details-download-id").val(download_id),clone.find("input.edd-payment-details-download-price-id").val(price_id);var item_total=item_price*quantity+item_tax;item_total=item_total.toFixed(edd_vars.currency_decimals),clone.find("span.edd-payment-details-download-amount").text(item_total),clone.find("input.edd-payment-details-download-amount").val(item_total),clone.find("input.edd-payment-details-download-quantity").val(quantity),clone.find("input.edd-payment-details-download-has-log").val(0),clone.find(".edd-copy-download-link-wrapper").remove(),clone.find("input").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+parseInt(count)+"]"),$(this).attr("name",name).attr("id",name)}),clone.find("a.edd-order-remove-download").attr("data-key",parseInt(count)),$("#edd-payment-downloads-changed").val(1),$(clone).insertAfter("#edd-purchased-files div.row:last"),$(".edd-order-payment-recalc-totals").show(),$(".edd-add-download-field").val("")})},edit_price:function(){$(document.body).on("change keyup",".edd-payment-item-input",function(){var row=$(this).parents("ul.edd-purchased-files-list-wrapper");$(".edd-order-payment-recalc-totals").show();var quantity=row.find("input.edd-payment-details-download-quantity").val().replace(edd_vars.thousands_separator,""),item_price=row.find("input.edd-payment-details-download-item-price").val().replace(edd_vars.thousands_separator,""),item_tax=row.find("input.edd-payment-details-download-item-tax").val().replace(edd_vars.thousands_separator,"");if(item_price=parseFloat(item_price),isNaN(item_price))return alert(edd_vars.numeric_item_price),!1;item_tax=parseFloat(item_tax),isNaN(item_tax)&&(item_tax=0),isNaN(parseInt(quantity))&&(quantity=1);var item_total=item_price*quantity+item_tax;item_total=item_total.toFixed(edd_vars.currency_decimals),row.find("input.edd-payment-details-download-amount").val(item_total),row.find("span.edd-payment-details-download-amount").text(item_total)})},recalculate_total:function(){$("#edd-order-recalc-total").on("click",function(e){e.preventDefault();var total=0,tax=0,totals=$("#edd-purchased-files .row input.edd-payment-details-download-amount"),taxes=$("#edd-purchased-files .row input.edd-payment-details-download-item-tax");totals.length&&totals.each(function(){total+=parseFloat($(this).val())}),taxes.length&&taxes.each(function(){tax+=parseFloat($(this).val())}),$(".edd-payment-fees").length&&$(".edd-payment-fees span.fee-amount").each(function(){total+=parseFloat($(this).data("fee"))}),$("input[name=edd-payment-total]").val(total.toFixed(edd_vars.currency_decimals)),$("input[name=edd-payment-tax]").val(tax.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){$(".edd-edit-purchase-element").on("change","select#edd_order_download_select",function(){var $this=$(this),download_id=$this.val();if(0<parseInt(download_id)){var postData={action:"edd_check_for_download_price_variations",download_id:download_id};$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){$(".edd_price_options_select").remove(),$(response).insertAfter($this.next())}}).fail(function(data){window.console&&window.console.log&&console.log(data)})}})},add_note:function(){$("#edd-add-payment-note").on("click",function(e){e.preventDefault();var postData={action:"edd_insert_payment_note",payment_id:$(this).data("payment-id"),note:$("#edd-payment-note").val()};if(postData.note)$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){$("#edd-payment-notes-inner").append(response),$(".edd-no-payment-notes").hide(),$("#edd-payment-note").val("")}}).fail(function(data){window.console&&window.console.log&&console.log(data)});else{var border_color=$("#edd-payment-note").css("border-color");$("#edd-payment-note").css("border-color","red"),setTimeout(function(){$("#edd-payment-note").css("border-color",border_color)},500)}})},remove_note:function(){$(document.body).on("click",".edd-delete-payment-note",function(e){if(e.preventDefault(),confirm(edd_vars.delete_payment_note)){var postData={action:"edd_delete_payment_note",payment_id:$(this).data("payment-id"),note_id:$(this).data("note-id")};return $.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){return $("#edd-payment-note-"+postData.note_id).remove(),$(".edd-payment-note").length||$(".edd-no-payment-notes").show(),!1}}).fail(function(data){window.console&&window.console.log&&console.log(data)}),!0}})},resend_receipt:function(){var emails_wrap=$(".edd-order-resend-receipt-addresses");$(document.body).on("click","#edd-select-receipt-email",function(e){e.preventDefault(),emails_wrap.slideDown()}),$(document.body).on("change",".edd-order-resend-receipt-email",function(){var href=$("#edd-select-receipt-email").prop("href")+"&email="+$(this).val();confirm(edd_vars.resend_receipt)&&(window.location=href)}),$(document.body).on("click","#edd-resend-receipt",function(e){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){$(document.body).on("click",".edd-copy-download-link",function(e){e.preventDefault();var $this=$(this),postData={action:"edd_get_file_download_link",payment_id:$('input[name="edd_payment_id"]').val(),download_id:$this.data("download-id"),price_id:$this.data("price-id")};$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(link){return $("#edd-download-link").dialog({width:400}).html('<textarea rows="10" cols="40" id="edd-download-link-textarea">'+link+"</textarea>"),$("#edd-download-link-textarea").focus().select(),!1}}).fail(function(data){window.console&&window.console.log&&console.log(data)})})}}).init(),{init:function(){this.type_select(),this.product_requirements()},type_select:function(){$("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){var val=$(this).val();$(".edd-amount-description").hide(),$(".edd-amount-description."+val+"-discount").show()})},product_requirements:function(){$("#products").change(function(){var product_conditions=$("#edd-discount-product-conditions");$(this).val()?product_conditions.show():product_conditions.hide()})}}.init(),{init:function(){this.date_options(),this.customers_export()},date_options:function(){$("#edd-graphs-date-options").change(function(){var $this=$(this),date_range_options=$("#edd-date-range-options");"other"===$this.val()?date_range_options.show():date_range_options.hide()})},customers_export:function(){$("#edd_customer_export_download").change(function(){var $this=$(this),download_id=$("option:selected",$this).val(),customer_export_option=$("#edd_customer_export_option");if("0"===$this.val()?customer_export_option.show():customer_export_option.hide(),0!=parseInt(download_id)){var data={action:"edd_check_for_download_price_variations",download_id:download_id,all_prices:!0},price_options_select=$(".edd_price_options_select");$.post(ajaxurl,data,function(response){price_options_select.remove(),$("#edd_customer_export_download_chosen").after(response)})}else price_options_select.remove()})}}.init(),{init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var edd_color_picker=$(".edd-color-picker");if(edd_color_picker.length&&edd_color_picker.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var edd_settings_upload_button=$(".edd_settings_upload_button");0<edd_settings_upload_button.length&&(window.formfield="",$(document.body).on("click",edd_settings_upload_button,function(e){e.preventDefault(),window.formfield=$(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),tb_show(edd_vars.add_new_download,"media-upload.php?TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(html){window.formfield?(imgurl=$("a","<div>"+html+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(html),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var file_frame;window.formfield="",$(document.body).on("click",".edd_settings_upload_button",function(e){e.preventDefault();var button=$(this);window.formfield=$(this).parent().prev(),file_frame||((file_frame=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:button.data("uploader_title"),button:{text:button.data("uploader_button_text")},multiple:!1})).on("menu:render:default",function(view){view.unset("library-separator"),view.unset("gallery"),view.unset("featured-image"),view.unset("embed"),view.set({})}),file_frame.on("insert",function(){file_frame.state().get("selection").each(function(attachment,index){attachment=attachment.toJSON(),window.formfield.val(attachment.url)})})),file_frame.open()}),window.formfield=""}},taxes:function(){var no_states=$("select.edd-no-states");no_states.length&&no_states.closest("tr").addClass("hidden"),$('select[name="edd_settings[base_country]"]').change(function(){var $this=$(this),$tr=$this.closest("tr"),data={action:"edd_get_shop_states",country:$this.val(),nonce:$this.data("nonce"),field_name:"edd_settings[base_state]"};return $.post(ajaxurl,data,function(response){"nostates"==response?$tr.next().addClass("hidden"):($tr.next().removeClass("hidden"),$tr.next().find("select").replaceWith(response))}),!1}),$(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var $this=$(this),data={action:"edd_get_shop_states",country:$this.val(),nonce:$this.data("nonce"),field_name:$this.attr("name").replace("country","state")};return $.post(ajaxurl,data,function(response){if("nostates"==response){var text_field='<input type="text" name="'+data.field_name+'" value=""/>';$this.parent().next().find("select").replaceWith(text_field)}else $this.parent().next().find("input,select").show(),$this.parent().next().find("input,select").replaceWith(response)}),!1}),$("#edd_add_tax_rate").on("click",function(){var row=$("#edd_tax_rates tr:last"),clone=row.clone(),count=row.parent().find("tr").length;return clone.find("td input").not(":input[type=checkbox]").val(""),clone.find('td [type="checkbox"]').attr("checked",!1),clone.find("input, select").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+parseInt(count)+"]"),$(this).attr("name",name).attr("id",name)}),clone.find("label").each(function(){var name=$(this).attr("for");name=name.replace(/\[(\d+)\]/,"["+parseInt(count)+"]"),$(this).attr("for",name)}),clone.insertAfter(row),!1}),$(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){confirm(edd_vars.delete_tax_rate)&&(2===$("#edd_tax_rates tr:visible").length?($("#edd_tax_rates select").val(""),$('#edd_tax_rates input[type="text"]').val(""),$('#edd_tax_rates input[type="number"]').val(""),$('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):$(this).closest("tr").remove(),$("#edd_tax_rates tr").each(function(rowIndex){$(this).children().find("input, select").each(function(){var name=$(this).attr("name");name=name.replace(/\[(\d+)\]/,"["+(rowIndex-1)+"]"),$(this).attr("name",name).attr("id",name)})}));return!1})},emails:function(){var email_preview_wrap=$("#email-preview-wrap");if(email_preview_wrap.length){var emailPreview=$("#email-preview");email_preview_wrap.colorbox({inline:!0,href:emailPreview,width:"80%",height:"auto"})}},misc:function(){var downloadMethod=$('select[name="edd_settings[download_method]"]'),symlink=downloadMethod.parent().parent().next();"direct"==downloadMethod.val()&&(symlink.hide(),symlink.find("input").prop("checked",!1)),downloadMethod.on("change",function(){"direct"==$(this).val()?(symlink.hide(),symlink.find("input").prop("checked",!1)):symlink.show()})}}.init(),$(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return!!confirm(edd_vars.delete_payment)}),$("body").on("click","#the-list .editinline",function(){var post_id=$(this).closest("tr").attr("id");post_id=post_id.replace("post-","");var regprice=$("#post-"+post_id).find(".column-price .downloadprice-"+post_id).val();regprice!=$("#post-"+post_id+".column-price .downloadprice-"+post_id).val()?$(".regprice","#edd-download-data").val(regprice).attr("disabled",!1):$(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),$(document.body).on("click","#bulk_edit",function(){var $bulk_row=$("#bulk-edit"),$post_ids=new Array;$bulk_row.find("#bulk-titles").children().each(function(){$post_ids.push($(this).attr("id").replace(/^(ttle)/i,""))});var $price=$('#edd-download-data input[name="_edd_regprice"]').val(),data={action:"edd_save_bulk_edit",edd_bulk_nonce:$post_ids,post_ids:$post_ids,price:$price};$.post(ajaxurl,data)}),$(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),$(".edd-select-chosen .chosen-search input").each(function(){var selectElem=$(this).parent().parent().parent().prev("select.edd-select-chosen"),placeholder=(selectElem.data("search-type"),selectElem.data("search-placeholder"));$(this).attr("placeholder",placeholder)}),$(".chosen-choices").on("click",function(){var placeholder=$(this).parent().prev().data("search-placeholder");void 0===placeholder&&(placeholder=edd_vars.type_to_search),$(this).children("li").children("input").attr("placeholder",placeholder)});$(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(e){var val=$(this).val(),container=$(this).closest(".edd-select-chosen"),select=(container.attr("id").replace("_chosen",""),container.prev()),no_bundles=container.hasClass("no-bundles"),variations=container.hasClass("variations"),lastKey=e.which,search_type="edd_download_search";if(container.prev().data("search-type")){if("no_ajax"==select.data("search-type"))return;search_type="edd_"+select.data("search-type")+"_search"}val.length<=3&&"edd_download_search"==search_type||16==lastKey||13==lastKey||91==lastKey||17==lastKey||37==lastKey||38==lastKey||39==lastKey||40==lastKey||(clearTimeout(typingTimer),typingTimer=setTimeout(function(){$.ajax({type:"GET",url:ajaxurl,data:{action:search_type,s:val,no_bundles:no_bundles,variations:variations},dataType:"json",beforeSend:function(){select.closest("ul.chosen-results").empty()},success:function(data){$("option:not(:selected)",select).remove(),$.each(data,function(key,item){$('option[value="'+item.id+'"]',select).length||select.prepend('<option value="'+item.id+'">'+item.name+"</option>")}),$(".edd-select-chosen").trigger("chosen:updated"),select.next().find("input").val(val)}}).fail(function(response){window.console&&window.console.log&&console.log(response)}).done(function(response){})},342))}),$("#post").on("click",".edd-thickbox",function(){$(".edd-select-chosen","#choose-download").css("width","100%")}),{init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){$(document.body).on("click",".edd-revoke-api-key",function(e){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){$(document.body).on("click",".edd-regenerate-api-key",function(e){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){$(document.body).on("submit","#api-key-generate-form",function(e){var input=$('input[type="text"][name="user_id"]');input.css("border-color","#ddd");var user_id=input.val();if(user_id.length<1||0==user_id)return input.css("border-color","#ff0000"),!1})},recount_stats:function(){$(document.body).on("change","#recount-stats-type",function(){var export_form=$("#edd-tools-recount-form"),selected_type=$("option:selected",this).data("type"),submit_button=$("#recount-stats-submit"),products=$("#tools-product-dropdown");if(export_form.find(".notice-wrap").remove(),submit_button.removeClass("button-disabled").attr("disabled",!1),products.hide(),$(".edd-recount-stats-descriptions span").hide(),"recount-download"===selected_type)products.show(),products.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===selected_type){export_form.append('<div class="notice-wrap"></div>'),export_form.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+edd_vars.reset_stats_warn+"</label></p></div>"),$("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else products.hide(),products.val(0);$("#"+selected_type).show()}),$(document.body).on("change","#confirm-reset",function(){$(this).is(":checked")?$("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):$("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),$("#edd-tools-recount-form").submit(function(e){var selection=$("#recount-stats-type").val(),export_form=$(this),selected_type=$("option:selected",this).data("type");if("reset-stats"===selected_type){if($("#confirm-reset").is(":checked"))return!0;has_errors=!0}export_form.find(".notice-wrap").remove(),export_form.append('<div class="notice-wrap"></div>');var notice_wrap=export_form.find(".notice-wrap"),has_errors=!1;(null!==selection&&0!==selection||(notice_wrap.html('<div class="updated error"><p>'+edd_vars.batch_export_no_class+"</p></div>"),has_errors=!0),"recount-download"===selected_type)&&(0==$('select[name="download_id"]').val()&&(notice_wrap.html('<div class="updated error"><p>'+edd_vars.batch_export_no_reqs+"</p></div>"),has_errors=!0));if(has_errors)return export_form.find(".button-disabled").removeClass("button-disabled"),!1})}}.init(),{init:function(){this.submit(),this.dismiss_message()},submit:function(){var self=this;$(document.body).on("submit",".edd-export-form",function(e){e.preventDefault();var submitButton=$(this).find('input[type="submit"]');if(!submitButton.hasClass("button-disabled")){var data=$(this).serialize();submitButton.addClass("button-disabled"),$(this).find(".notice-wrap").remove(),$(this).append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),self.process_step(1,data,self)}})},process_step:function(step,data,self){$.ajax({type:"POST",url:ajaxurl,data:{form:data,action:"edd_do_ajax_export",step:step},dataType:"json",success:function(response){if("done"==response.step||response.error||response.success){var export_form=$(".edd-export-form").find(".edd-progress").parent().parent(),notice_wrap=export_form.find(".notice-wrap");if(export_form.find(".button-disabled").removeClass("button-disabled"),response.error){var error_message=response.message;notice_wrap.html('<div class="updated error"><p>'+error_message+"</p></div>")}else if(response.success){var success_message=response.message;notice_wrap.html('<div id="edd-batch-success" class="updated notice is-dismissible"><p>'+success_message+'<span class="notice-dismiss"></span></p></div>')}else notice_wrap.remove(),window.location=response.url}else $(".edd-progress div").animate({width:response.percentage+"%"},50,function(){}),self.process_step(parseInt(response.step),data,self)}}).fail(function(response){window.console&&window.console.log&&console.log(response)})},dismiss_message:function(){$(document.body).on("click","#edd-batch-success .notice-dismiss",function(){$("#edd-batch-success").parent().slideUp("fast")})}}.init();var EDD_Import={init:function(){this.submit()},submit:function(){$(".edd-import-form").ajaxForm({beforeSubmit:this.before_submit,success:this.success,complete:this.complete,dataType:"json",error:this.error})},before_submit:function(arr,$form,options){if($form.find(".notice-wrap").remove(),$form.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var import_form=$(".edd-import-form").find(".edd-progress").parent().parent(),notice_wrap=import_form.find(".notice-wrap");return import_form.find(".button-disabled").removeClass("button-disabled"),notice_wrap.html('<div class="update error"><p>'+edd_vars.unsupported_browser+"</p></div>"),!1}},success:function(responseText,statusText,xhr,$form){},complete:function(xhr){var response=jQuery.parseJSON(xhr.responseText);if(response.success){var $form=$(".edd-import-form .notice-wrap").parent();$form.find(".edd-import-file-wrap,.notice-wrap").remove(),$form.find(".edd-import-options").slideDown();var select=$form.find("select.edd-import-csv-column"),options=(select.parents("tr").first(),""),columns=response.data.columns.sort(function(a,b){return a<b?-1:b<a?1:0});$.each(columns,function(key,value){options+='<option value="'+value+'">'+value+"</option>"}),select.append(options),select.on("change",function(){var $key=$(this).val();$key&&0!=response.data.first_row[$key]?$(this).parent().next().html(response.data.first_row[$key]):$(this).parent().next().html("")}),$.each(select,function(){$(this).val($(this).attr("data-field")).change()}),$(document.body).on("click",".edd-import-proceed",function(e){e.preventDefault(),$form.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),response.data.mapping=$form.serialize(),EDD_Import.process_step(1,response.data,self)})}else EDD_Import.error(xhr)},error:function(xhr){var response=jQuery.parseJSON(xhr.responseText),import_form=$(".edd-import-form").find(".edd-progress").parent().parent(),notice_wrap=import_form.find(".notice-wrap");import_form.find(".button-disabled").removeClass("button-disabled"),response.data.error?notice_wrap.html('<div class="update error"><p>'+response.data.error+"</p></div>"):notice_wrap.remove()},process_step:function(step,import_data,self){$.ajax({type:"POST",url:ajaxurl,data:{form:import_data.form,nonce:import_data.nonce,class:import_data.class,upload:import_data.upload,mapping:import_data.mapping,action:"edd_do_ajax_import",step:step},dataType:"json",success:function(response){if("done"==response.data.step||response.data.error){var import_form=$(".edd-import-form").find(".edd-progress").parent().parent(),notice_wrap=import_form.find(".notice-wrap");import_form.find(".button-disabled").removeClass("button-disabled"),response.data.error?notice_wrap.html('<div class="update error"><p>'+response.data.error+"</p></div>"):(import_form.find(".edd-import-options").hide(),$("html, body").animate({scrollTop:import_form.parent().offset().top},500),notice_wrap.html('<div class="updated"><p>'+response.data.message+"</p></div>"))}else $(".edd-progress div").animate({width:response.data.percentage+"%"},50,function(){}),EDD_Import.process_step(parseInt(response.data.step),import_data,self)}}).fail(function(response){window.console&&window.console.log&&console.log(response)})}};EDD_Import.init();var EDD_Customer={vars:{customer_card_wrap_editable:$(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:$(".edd-customer-card-wrapper .edit-item"),user_id:$('input[name="customerinfo[user_id]"]'),state_input:$(':input[name="customerinfo[state]"]'),note:$("#customer-note")},init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){$(document.body).on("click","#edit-customer",function(e){e.preventDefault(),EDD_Customer.vars.customer_card_wrap_editable.hide(),EDD_Customer.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){$(document.body).on("click","#add-customer-email",function(e){e.preventDefault();var button=$(this),wrapper=button.parent();wrapper.parent().find(".notice-container").remove(),wrapper.find(".spinner").css("visibility","visible"),button.attr("disabled",!0);var postData={edd_action:"customer-add-email",customer_id:wrapper.find('input[name="customer-id"]').val(),email:wrapper.find('input[name="additional-email"]').val(),primary:wrapper.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:wrapper.find('input[name="add_email_nonce"]').val()};$.post(ajaxurl,postData,function(response){!0===response.success?window.location.href=response.redirect:(button.attr("disabled",!1),wrapper.after('<div class="notice-container"><div class="notice notice-error inline"><p>'+response.message+"</p></div></div>"),wrapper.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){$(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(e){e.preventDefault();var user_id=$(this).data("userid");EDD_Customer.vars.user_id.val(user_id)})},remove_user:function(){$(document.body).on("click","#disconnect-customer",function(e){if(e.preventDefault(),confirm(edd_vars.disconnect_customer)){var postData={edd_action:"disconnect-userid",customer_id:$('input[name="customerinfo[id]"]').val(),_wpnonce:$("#edit-customer-info #_wpnonce").val()};$.post(ajaxurl,postData,function(response){window.location.href=window.location.href},"json")}})},cancel_edit:function(){$(document.body).on("click","#edd-edit-customer-cancel",function(e){e.preventDefault(),EDD_Customer.vars.customer_card_wrap_edit_item.hide(),EDD_Customer.vars.customer_card_wrap_editable.show(),$(".edd_user_search_results").html("")})},change_country:function(){$('select[name="customerinfo[country]"]').change(function(){var $this=$(this),data={action:"edd_get_shop_states",country:$this.val(),nonce:$this.data("nonce"),field_name:"customerinfo[state]"};return $.post(ajaxurl,data,function(response){"nostates"==response?EDD_Customer.vars.state_input.replaceWith('<input type="text" name="'+data.field_name+'" value="" class="edd-edit-toggles medium-text"/>'):EDD_Customer.vars.state_input.replaceWith(response)}),!1})},add_note:function(){$(document.body).on("click","#add-customer-note",function(e){e.preventDefault();var postData={edd_action:"add-customer-note",customer_id:$("#customer-id").val(),customer_note:EDD_Customer.vars.note.val(),add_customer_note_nonce:$("#add_customer_note_nonce").val()};if(postData.customer_note)$.ajax({type:"POST",data:postData,url:ajaxurl,success:function(response){$("#edd-customer-notes").prepend(response),$(".edd-no-customer-notes").hide(),EDD_Customer.vars.note.val("")}}).fail(function(data){window.console&&window.console.log&&console.log(data)});else{var border_color=EDD_Customer.vars.note.css("border-color");EDD_Customer.vars.note.css("border-color","red"),setTimeout(function(){EDD_Customer.vars.note.css("border-color",border_color)},500)}})},delete_checked:function(){$("#edd-customer-delete-confirm").change(function(){var records_input=$("#edd-customer-delete-records"),submit_button=$("#edd-delete-customer");$(this).prop("checked")?(records_input.attr("disabled",!1),submit_button.attr("disabled",!1)):(records_input.attr("disabled",!0),records_input.prop("checked",!1),submit_button.attr("disabled",!0))})}};EDD_Customer.init(),$(".edd-ajax-user-search").keyup(function(){var user_search=$(this).val(),exclude="";$(this).data("exclude")&&(exclude=$(this).data("exclude")),$(".edd-ajax").show();var data={action:"edd_search_users",user_name:user_search,exclude:exclude};document.body.style.cursor="wait",$.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(search_response){$(".edd-ajax").hide(),$(".edd_user_search_results").removeClass("hidden"),$(".edd_user_search_results span").html(""),$(search_response.results).appendTo(".edd_user_search_results span"),document.body.style.cursor="default"}})}),$(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(e){e.preventDefault();var login=$(this).data("login");$(".edd-ajax-user-search").val(login),$(".edd_user_search_results").addClass("hidden"),$(".edd_user_search_results span").html("")}),$(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(e){e.preventDefault(),$(".edd-ajax-user-search").val(""),$(".edd_user_search_results").addClass("hidden"),$(".edd_user_search_results span").html("")}),$("#edd_dashboard_sales").length&&$.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(response){$("#edd_dashboard_sales .inside").html(response)}}),$(document.body).on("keydown",".customer-note-input",function(e){13==e.keyCode&&(e.metaKey||e.ctrlKey)&&$("#add-customer-note").click()})});var eddFormatCurrency=function(value){var numeric=parseFloat(value),storeCurrency=edd_vars.currency,decimalPlaces=edd_vars.currency_decimals;return numeric.toLocaleString(storeCurrency,{style:"currency",currency:storeCurrency,minimumFractionDigits:decimalPlaces,maximumFractionDigits:decimalPlaces})},eddFormatNumber=function(value){var numeric=parseFloat(value),storeCurrency=edd_vars.currency;edd_vars.currency_decimals;return numeric.toLocaleString(storeCurrency,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(label,series){return'<div style="font-size:12px; text-align:center; padding:2px">'+label+"</div>"},eddLegendFormatterSales=function(label,series){var slug=label.toLowerCase().replace(/\s/g,"-"),color='<div class="edd-legend-color" style="background-color: '+series.color+'"></div>',value='<div class="edd-pie-legend-item">'+label+": "+Math.round(series.percent)+"% ("+eddFormatNumber(series.data[0][1])+")</div>",item='<div id="'+series.edd_vars.id+slug+'" class="edd-legend-item-wrapper">'+color+value+"</div>";return jQuery("#edd-pie-legend-"+series.edd_vars.id).append(item),item},eddLegendFormatterEarnings=function(label,series){var slug=label.toLowerCase().replace(/\s/g,"-"),color='<div class="edd-legend-color" style="background-color: '+series.color+'"></div>',value='<div class="edd-pie-legend-item">'+label+": "+Math.round(series.percent)+"% ("+eddFormatCurrency(series.data[0][1])+")</div>",item='<div id="'+series.edd_vars.id+slug+'" class="edd-legend-item-wrapper">'+color+value+"</div>";return jQuery("#edd-pie-legend-"+series.edd_vars.id).append(item),item};function edd_attach_tooltips(selector){selector.tooltip({content:function(){return jQuery(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})}
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.4
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.4
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.4' );
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.5
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.5
29
  */
30
 
31
  // Exit if accessed directly.
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
+ define( 'EDD_VERSION', '2.9.5' );
210
  }
211
 
212
  // Plugin Folder Path.
includes/admin/customers/customers.php CHANGED
@@ -240,7 +240,7 @@ function edd_customers_view( $customer ) {
240
  <input class="info-item" type="text" data-key="line1" name="customerinfo[line1]" placeholder="<?php _e( 'Address 1', 'easy-digital-downloads' ); ?>" value="<?php echo $address['line1']; ?>" />
241
  <input class="info-item" type="text" data-key="line2" name="customerinfo[line2]" placeholder="<?php _e( 'Address 2', 'easy-digital-downloads' ); ?>" value="<?php echo $address['line2']; ?>" />
242
  <input class="info-item" type="text" data-key="city" name="customerinfo[city]" placeholder="<?php _e( 'City', 'easy-digital-downloads' ); ?>" value="<?php echo $address['city']; ?>" />
243
- <select data-key="country" name="customerinfo[country]" id="billing_country" class="billing_country edd-select edit-item">
244
  <?php
245
 
246
  $selected_country = $address['country'];
240
  <input class="info-item" type="text" data-key="line1" name="customerinfo[line1]" placeholder="<?php _e( 'Address 1', 'easy-digital-downloads' ); ?>" value="<?php echo $address['line1']; ?>" />
241
  <input class="info-item" type="text" data-key="line2" name="customerinfo[line2]" placeholder="<?php _e( 'Address 2', 'easy-digital-downloads' ); ?>" value="<?php echo $address['line2']; ?>" />
242
  <input class="info-item" type="text" data-key="city" name="customerinfo[city]" placeholder="<?php _e( 'City', 'easy-digital-downloads' ); ?>" value="<?php echo $address['city']; ?>" />
243
+ <select data-key="country" name="customerinfo[country]" id="billing_country" class="billing_country edd-select edit-item" data-nonce="<?php echo wp_create_nonce( 'edd-country-field-nonce' ); ?>">
244
  <?php
245
 
246
  $selected_country = $address['country'];
includes/admin/settings/register-settings.php CHANGED
@@ -320,6 +320,9 @@ function edd_get_registered_settings() {
320
  'options' => edd_get_country_list(),
321
  'chosen' => true,
322
  'placeholder' => __( 'Select a country', 'easy-digital-downloads' ),
 
 
 
323
  ),
324
  'base_state' => array(
325
  'id' => 'base_state',
@@ -1922,11 +1925,15 @@ function edd_select_callback($args) {
1922
  $class .= ' edd-select-chosen';
1923
  }
1924
 
 
 
 
 
1925
  // If the Select Field allows Multiple values, save as an Array
1926
  $name_attr = 'edd_settings[' . esc_attr( $args['id'] ) . ']';
1927
  $name_attr = ( $args['multiple'] ) ? $name_attr . '[]' : $name_attr;
1928
 
1929
- $html = '<select id="edd_settings[' . edd_sanitize_key( $args['id'] ) . ']" name="' . $name_attr . '" class="' . $class . '" data-placeholder="' . esc_html( $placeholder ) . '" ' . ( ( $args['multiple'] ) ? 'multiple="true"' : '' ) . '>';
1930
 
1931
  foreach ( $args['options'] as $option => $name ) {
1932
 
@@ -2155,7 +2162,10 @@ function edd_tax_rates_callback($args) {
2155
  'show_option_none' => false,
2156
  'class' => 'edd-tax-country',
2157
  'chosen' => false,
2158
- 'placeholder' => __( 'Choose a country', 'easy-digital-downloads' )
 
 
 
2159
  ) );
2160
  ?>
2161
  </td>
@@ -2200,7 +2210,10 @@ function edd_tax_rates_callback($args) {
2200
  'show_option_none' => false,
2201
  'class' => 'edd-tax-country',
2202
  'chosen' => false,
2203
- 'placeholder' => __( 'Choose a country', 'easy-digital-downloads' )
 
 
 
2204
  ) ); ?>
2205
  </td>
2206
  <td class="edd_tax_state">
320
  'options' => edd_get_country_list(),
321
  'chosen' => true,
322
  'placeholder' => __( 'Select a country', 'easy-digital-downloads' ),
323
+ 'data' => array(
324
+ 'nonce' => wp_create_nonce( 'edd-country-field-nonce' )
325
+ )
326
  ),
327
  'base_state' => array(
328
  'id' => 'base_state',
1925
  $class .= ' edd-select-chosen';
1926
  }
1927
 
1928
+ $nonce = isset( $args['data']['nonce'] )
1929
+ ? ' data-nonce="' . sanitize_text_field( $args['data']['nonce'] ) . '" '
1930
+ : '';
1931
+
1932
  // If the Select Field allows Multiple values, save as an Array
1933
  $name_attr = 'edd_settings[' . esc_attr( $args['id'] ) . ']';
1934
  $name_attr = ( $args['multiple'] ) ? $name_attr . '[]' : $name_attr;
1935
 
1936
+ $html = '<select ' . $nonce . ' id="edd_settings[' . edd_sanitize_key( $args['id'] ) . ']" name="' . $name_attr . '" class="' . $class . '" data-placeholder="' . esc_html( $placeholder ) . '" ' . ( ( $args['multiple'] ) ? 'multiple="true"' : '' ) . '>';
1937
 
1938
  foreach ( $args['options'] as $option => $name ) {
1939
 
2162
  'show_option_none' => false,
2163
  'class' => 'edd-tax-country',
2164
  'chosen' => false,
2165
+ 'placeholder' => __( 'Choose a country', 'easy-digital-downloads' ),
2166
+ 'data' => array(
2167
+ 'nonce' => wp_create_nonce( 'edd-country-field-nonce' )
2168
+ )
2169
  ) );
2170
  ?>
2171
  </td>
2210
  'show_option_none' => false,
2211
  'class' => 'edd-tax-country',
2212
  'chosen' => false,
2213
+ 'placeholder' => __( 'Choose a country', 'easy-digital-downloads' ),
2214
+ 'data' => array(
2215
+ 'nonce' => wp_create_nonce( 'edd-country-field-nonce' )
2216
+ )
2217
  ) ); ?>
2218
  </td>
2219
  <td class="edd_tax_state">
includes/admin/upgrades/classes/class-file-download-log-migration.php CHANGED
@@ -47,62 +47,48 @@ class EDD_File_Download_Log_Migration extends EDD_Batch_Export {
47
  *
48
  * @access public
49
  * @since 2.9.2
50
- * @global object $wpdb Used to query the database using the WordPress
51
- * Database API
52
  * @return array $data The data for the CSV file
53
  */
54
  public function get_data() {
55
 
56
- global $wpdb;
57
-
58
- $items = $this->get_stored_data( 'edd_file_download_log_ids' );
59
 
60
- if ( ! is_array( $items ) ) {
61
  return false;
62
  }
63
 
64
- $offset = ( $this->step - 1 ) * $this->per_step;
65
- $step_items = array_slice( $items, $offset, $this->per_step, true );
66
-
67
- if ( $step_items ) {
68
-
69
- foreach ( $step_items as $log_id ) {
70
-
71
- $log_id = (int) $log_id['object_id'];
72
- $sanitized_log_id = absint( $log_id );
73
-
74
- if ( $sanitized_log_id !== $log_id ) {
75
- edd_debug_log( "Log ID mismatch, skipping log ID {$log_id}" );
76
- continue;
77
- }
78
 
79
- $has_customer_id = get_post_meta( $log_id, '_edd_log_customer_id', true );
80
- if ( ! empty( $has_customer_id ) ) {
81
- continue;
82
- }
83
 
84
- $payment_id = $wpdb->get_var( "SELECT meta_value FROM {$wpdb->postmeta} WHERE post_id = {$sanitized_log_id} AND meta_key = '_edd_log_payment_id'" );
85
- if ( ! empty( $payment_id ) ) {
86
- $payment = edd_get_payment( $payment_id );
87
- $customer_id = $payment->customer_id;
88
 
89
- if ( $customer_id < 0 ) {
90
- $customer_id = 0;
91
- }
 
92
 
93
- update_post_meta( $log_id, '_edd_log_customer_id', $customer_id );
94
- delete_post_meta( $log_id, '_edd_log_user_info' );
 
95
 
 
 
96
  }
97
 
 
 
98
  }
99
-
100
- return true;
101
-
102
  }
103
 
104
- return false;
105
-
106
  }
107
 
108
  /**
@@ -113,13 +99,12 @@ class EDD_File_Download_Log_Migration extends EDD_Batch_Export {
113
  */
114
  public function get_percentage_complete() {
115
 
116
- $items = $this->get_stored_data( 'edd_file_download_log_ids', false );
117
- $total = count( $items );
118
 
119
  $percentage = 100;
120
 
121
  if( $total > 0 ) {
122
- $percentage = ( ( $this->per_step * $this->step ) / $total ) * 100;
123
  }
124
 
125
  if( $percentage > 100 ) {
@@ -158,9 +143,9 @@ class EDD_File_Download_Log_Migration extends EDD_Batch_Export {
158
  $this->done = false;
159
  return true;
160
  } else {
161
- $this->delete_data( 'edd_file_download_log_ids' );
162
-
163
- $this->done = true;
164
  $this->message = __( 'File download logs updated successfully.', 'easy-digital-downloads' );
165
  edd_set_upgrade_complete( 'update_file_download_log_data' );
166
  return false;
@@ -190,84 +175,69 @@ class EDD_File_Download_Log_Migration extends EDD_Batch_Export {
190
  edd_die();
191
  }
192
 
 
 
 
 
 
 
 
193
  public function pre_fetch() {
194
  global $wpdb;
195
 
196
- // Get all the file download logs
197
- if ( $this->step == 1 ) {
198
- $this->delete_data( 'edd_file_download_log_ids' );
199
 
200
- $term_id = $wpdb->get_var( "SELECT term_id FROM {$wpdb->terms} WHERE name = 'file_download'" );
201
- $term_tax_id = $wpdb->get_var( "SELECT term_taxonomy_id FROM {$wpdb->term_taxonomy} WHERE term_id = {$term_id} AND taxonomy = 'edd_log_type'" );
202
- $log_ids = $wpdb->get_results( "SELECT object_id FROM {$wpdb->term_relationships} WHERE term_taxonomy_id = {$term_tax_id}" );
203
 
204
- $this->store_data( 'edd_file_download_log_ids', $log_ids );
 
205
 
206
- }
 
207
 
208
- }
 
209
 
210
- /**
211
- * Given a key, get the information from the Database Directly
212
- *
213
- * @since 2.9.2
214
- * @param string $key The option_name
215
- * @return mixed Returns the data from the database
216
- */
217
- private function get_stored_data( $key ) {
218
- global $wpdb;
219
- $value = $wpdb->get_var(
220
- $wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = '%s'", $key )
221
- );
222
 
223
- if ( empty( $value ) ) {
224
- return false;
225
- }
226
-
227
- $maybe_json = json_decode( $value );
228
- if ( ! is_null( $maybe_json ) ) {
229
- $value = json_decode( $value, true );
230
  }
231
 
232
- return $value;
 
233
  }
234
 
235
  /**
236
- * Give a key, store the value
237
  *
238
- * @since 2.9.2
239
- * @param string $key The option_name
240
- * @param mixed $value The value to store
241
- * @return void
242
  */
243
- private function store_data( $key, $value ) {
244
  global $wpdb;
245
 
246
- $value = is_array( $value ) ? wp_json_encode( $value ) : esc_attr( $value );
 
 
247
 
248
- $data = array(
249
- 'option_name' => $key,
250
- 'option_value' => $value,
251
- 'autoload' => 'no',
252
- );
253
 
254
- $formats = array(
255
- '%s', '%s', '%s',
256
- );
 
257
 
258
- $wpdb->replace( $wpdb->options, $data, $formats );
 
 
 
259
  }
260
-
261
- /**
262
- * Delete an option
263
- *
264
- * @since 2.9.2
265
- * @param string $key The option_name to delete
266
- * @return void
267
- */
268
- private function delete_data( $key ) {
269
- global $wpdb;
270
- $wpdb->delete( $wpdb->options, array( 'option_name' => $key ) );
271
- }
272
-
273
  }
47
  *
48
  * @access public
49
  * @since 2.9.2
 
 
50
  * @return array $data The data for the CSV file
51
  */
52
  public function get_data() {
53
 
54
+ $step_items = $this->get_log_ids_for_current_step();
 
 
55
 
56
+ if ( ! is_array( $step_items ) ) {
57
  return false;
58
  }
59
 
60
+ if ( empty( $step_items ) ) {
61
+ return false;
62
+ }
 
 
 
 
 
 
 
 
 
 
 
63
 
64
+ foreach ( $step_items as $log_id ) {
65
+ $log_id = (int) $log_id;
66
+ $sanitized_log_id = absint( $log_id );
 
67
 
68
+ if ( $sanitized_log_id !== $log_id ) {
69
+ edd_debug_log( "Log ID mismatch, skipping log ID {$log_id}" );
70
+ continue;
71
+ }
72
 
73
+ $has_customer_id = (int) get_post_meta( $log_id, '_edd_log_customer_id', true );
74
+ if ( ! empty( $has_customer_id ) ) {
75
+ continue;
76
+ }
77
 
78
+ $payment_id = (int) get_post_meta( $log_id, '_edd_log_payment_id', true );
79
+ if ( ! empty( $payment_id ) ) {
80
+ $customer_id = edd_get_payment_customer_id( $payment_id );
81
 
82
+ if ( $customer_id < 0 ) {
83
+ $customer_id = 0;
84
  }
85
 
86
+ update_post_meta( $log_id, '_edd_log_customer_id', $customer_id );
87
+ delete_post_meta( $log_id, '_edd_log_user_info' );
88
  }
 
 
 
89
  }
90
 
91
+ return true;
 
92
  }
93
 
94
  /**
99
  */
100
  public function get_percentage_complete() {
101
 
102
+ $total = (int) get_option( 'edd_fdlm_total_logs', 0 );
 
103
 
104
  $percentage = 100;
105
 
106
  if( $total > 0 ) {
107
+ $percentage = ( ( $this->step * $this->per_step ) / $total ) * 100;
108
  }
109
 
110
  if( $percentage > 100 ) {
143
  $this->done = false;
144
  return true;
145
  } else {
146
+ $this->done = true;
147
+ delete_option( 'edd_fdlm_total_logs' );
148
+ delete_option( 'edd_fdlm_term_tax_id' );
149
  $this->message = __( 'File download logs updated successfully.', 'easy-digital-downloads' );
150
  edd_set_upgrade_complete( 'update_file_download_log_data' );
151
  return false;
175
  edd_die();
176
  }
177
 
178
+ /**
179
+ * Fetch total number of log IDs needing migration
180
+ *
181
+ * @since 2.9.5
182
+ *
183
+ * @global object $wpdb
184
+ */
185
  public function pre_fetch() {
186
  global $wpdb;
187
 
188
+ // Default count (assume no entries)
189
+ $log_id_count = 0;
 
190
 
191
+ // Query for a term ID (make sure log items exist)
192
+ $term_id = $wpdb->get_var( "SELECT term_id FROM {$wpdb->terms} WHERE name = 'file_download' LIMIT 1" );
 
193
 
194
+ // Log items exist...
195
+ if ( ! empty( $term_id ) ) {
196
 
197
+ // Query for possible entries...
198
+ $term_tax_id = $wpdb->get_var( $wpdb->prepare( "SELECT term_taxonomy_id FROM {$wpdb->term_taxonomy} WHERE term_id = %d AND taxonomy = 'edd_log_type' LIMIT 1", $term_id ) );
199
 
200
+ // Entries exist...
201
+ if ( ! empty( $term_tax_id ) ) {
202
 
203
+ // Cache the term taxonomy ID
204
+ update_option( 'edd_fdlm_term_tax_id', $term_tax_id );
 
 
 
 
 
 
 
 
 
 
205
 
206
+ // Count the number of entries!
207
+ $log_id_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT (*) FROM {$wpdb->term_relationships} WHERE term_taxonomy_id = %d", $term_tax_id ) );
208
+ }
 
 
 
 
209
  }
210
 
211
+ // Temporarily save the number of rows
212
+ update_option( 'edd_fdlm_total_logs', (int) $log_id_count );
213
  }
214
 
215
  /**
216
+ * Get the log IDs (50 based on this->per_step) for the current step
217
  *
218
+ * @since 2.9.5
219
+ *
220
+ * @global object $wpdb
221
+ * @return array
222
  */
223
+ private function get_log_ids_for_current_step() {
224
  global $wpdb;
225
 
226
+ // Default values
227
+ $log_ids = array();
228
+ $offset = ( $this->step * $this->per_step ) - $this->per_step;
229
 
230
+ // Count the number of entries!
231
+ $term_tax_id = (int) get_option( 'edd_fdlm_term_tax_id', 0 );
 
 
 
232
 
233
+ // Only query if term taxonomy ID was prefetched
234
+ if ( ! empty( $term_tax_id ) ) {
235
+ $log_ids = $wpdb->get_col( $wpdb->prepare( "SELECT object_id FROM {$wpdb->term_relationships} WHERE term_taxonomy_id = %d LIMIT %d, %d", $term_tax_id, $offset, $this->per_step ) );
236
+ }
237
 
238
+ // Always return an array
239
+ return ! is_wp_error( $log_ids )
240
+ ? (array) $log_ids
241
+ : array();
242
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  }
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.4\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
- "POT-Creation-Date: 2018-07-09 21:34:14+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -79,7 +79,7 @@ msgstr ""
79
  #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:153
80
  #: includes/admin/tools/class-edd-tools-reset-stats.php:179
81
  #: includes/admin/tools.php:1027 includes/admin/tools.php:1033
82
- #: includes/admin/upgrades/classes/class-file-download-log-migration.php:151
83
  #: includes/admin/upgrades/upgrade-functions.php:221
84
  #: includes/admin/upgrades/upgrade-functions.php:537
85
  #: includes/admin/upgrades/upgrade-functions.php:619
@@ -196,7 +196,7 @@ msgstr ""
196
 
197
  #: includes/admin/admin-pages.php:43 includes/admin/plugins.php:57
198
  #: includes/admin/settings/contextual-help.php:87
199
- #: includes/admin/settings/register-settings.php:1338
200
  msgid "Extensions"
201
  msgstr ""
202
 
@@ -431,7 +431,7 @@ msgstr ""
431
  #: includes/admin/discounts/class-discount-codes-table.php:267
432
  #: includes/admin/payments/class-payments-table.php:367
433
  #: includes/admin/payments/class-payments-table.php:435
434
- #: includes/admin/settings/register-settings.php:927
435
  #: includes/payments/functions.php:1618
436
  msgid "Delete"
437
  msgstr ""
@@ -639,7 +639,7 @@ msgid "City"
639
  msgstr ""
640
 
641
  #: includes/admin/customers/customers.php:269
642
- #: includes/admin/settings/register-settings.php:2139
643
  #: includes/admin/tools.php:695 includes/checkout/template.php:435
644
  #: templates/shortcode-profile-editor.php:171
645
  msgid "State / Province"
@@ -744,7 +744,7 @@ msgstr ""
744
  #: includes/admin/downloads/metabox.php:698
745
  #: includes/admin/downloads/metabox.php:823
746
  #: includes/admin/payments/view-order-details.php:490
747
- #: includes/admin/settings/register-settings.php:2142 includes/scripts.php:227
748
  #: templates/checkout_cart.php:57 templates/checkout_cart.php:75
749
  #: templates/shortcode-profile-editor.php:123
750
  msgid "Remove"
@@ -1253,13 +1253,13 @@ msgstr ""
1253
 
1254
  #: includes/admin/discounts/contextual-help.php:38
1255
  #: includes/admin/settings/contextual-help.php:42
1256
- #: includes/admin/settings/register-settings.php:1330
1257
- #: includes/admin/settings/register-settings.php:1386
1258
- #: includes/admin/settings/register-settings.php:1391
1259
- #: includes/admin/settings/register-settings.php:1395
1260
- #: includes/admin/settings/register-settings.php:1400
1261
  #: includes/admin/settings/register-settings.php:1403
1262
- #: includes/admin/settings/register-settings.php:1418
 
1263
  #: includes/admin/tools.php:68
1264
  msgid "General"
1265
  msgstr ""
@@ -1764,7 +1764,7 @@ msgid ""
1764
  msgstr ""
1765
 
1766
  #: includes/admin/downloads/metabox.php:1031
1767
- #: includes/admin/settings/register-settings.php:744
1768
  #: includes/admin/thickbox.php:59 includes/checkout/template.php:984
1769
  #: includes/shortcodes.php:49 includes/template-functions.php:78
1770
  msgid "Purchase"
@@ -1805,13 +1805,13 @@ msgid ""
1805
  msgstr ""
1806
 
1807
  #: includes/admin/downloads/metabox.php:1105
1808
- #: includes/admin/settings/register-settings.php:758
1809
  #: includes/admin/thickbox.php:97
1810
  msgid "Add to Cart"
1811
  msgstr ""
1812
 
1813
  #: includes/admin/downloads/metabox.php:1106
1814
- #: includes/admin/settings/register-settings.php:772 includes/shortcodes.php:47
1815
  #: includes/template-functions.php:78
1816
  msgid "Buy Now"
1817
  msgstr ""
@@ -2245,7 +2245,7 @@ msgstr[0] ""
2245
  msgstr[1] ""
2246
 
2247
  #: includes/admin/payments/view-order-details.php:152
2248
- #: includes/admin/settings/register-settings.php:720
2249
  msgid "None"
2250
  msgstr ""
2251
 
@@ -2421,7 +2421,7 @@ msgid "Type to search all Countries"
2421
  msgstr ""
2422
 
2423
  #: includes/admin/payments/view-order-details.php:753
2424
- #: includes/admin/settings/register-settings.php:330
2425
  msgid "Select a state"
2426
  msgstr ""
2427
 
@@ -2611,7 +2611,7 @@ msgstr ""
2611
 
2612
  #: includes/admin/reporting/class-export-payments.php:68
2613
  #: includes/admin/reporting/export/class-batch-export-payments.php:49
2614
- #: includes/admin/settings/register-settings.php:2138
2615
  #: includes/admin/tools.php:713 templates/shortcode-profile-editor.php:162
2616
  msgid "Country"
2617
  msgstr ""
@@ -2827,7 +2827,7 @@ msgid "Files"
2827
  msgstr ""
2828
 
2829
  #: includes/admin/reporting/export/class-batch-export-downloads.php:53
2830
- #: includes/admin/settings/register-settings.php:796
2831
  #: includes/admin/tools.php:896
2832
  msgid "File Download Limit"
2833
  msgstr ""
@@ -2875,8 +2875,8 @@ msgid "Products (Verbose)"
2875
  msgstr ""
2876
 
2877
  #: includes/admin/reporting/export/class-batch-export-payments.php:62
2878
- #: includes/admin/settings/register-settings.php:352
2879
- #: includes/admin/settings/register-settings.php:1387
2880
  msgid "Currency"
2881
  msgstr ""
2882
 
@@ -3008,7 +3008,7 @@ msgid "Refresh Reports"
3008
  msgstr ""
3009
 
3010
  #: includes/admin/reporting/logs.php:144
3011
- #: includes/admin/settings/register-settings.php:1413
3012
  #: includes/privacy-functions.php:544
3013
  msgid "File Downloads"
3014
  msgstr ""
@@ -3039,7 +3039,7 @@ msgstr ""
3039
 
3040
  #: includes/admin/reporting/reports.php:59
3041
  #: includes/admin/settings/contextual-help.php:71
3042
- #: includes/admin/settings/register-settings.php:1334
3043
  msgid "Taxes"
3044
  msgstr ""
3045
 
@@ -3185,8 +3185,8 @@ msgid ""
3185
  msgstr ""
3186
 
3187
  #: includes/admin/settings/contextual-help.php:48
3188
- #: includes/admin/settings/register-settings.php:420
3189
- #: includes/admin/settings/register-settings.php:1331
3190
  msgid "Payment Gateways"
3191
  msgstr ""
3192
 
@@ -3215,7 +3215,7 @@ msgid ""
3215
  msgstr ""
3216
 
3217
  #: includes/admin/settings/contextual-help.php:57
3218
- #: includes/admin/settings/register-settings.php:1332
3219
  msgid "Emails"
3220
  msgstr ""
3221
 
@@ -3235,7 +3235,7 @@ msgid ""
3235
  msgstr ""
3236
 
3237
  #: includes/admin/settings/contextual-help.php:65
3238
- #: includes/admin/settings/register-settings.php:1333
3239
  msgid "Styles"
3240
  msgstr ""
3241
 
@@ -3318,7 +3318,7 @@ msgid ""
3318
  msgstr ""
3319
 
3320
  #: includes/admin/settings/contextual-help.php:93
3321
- #: includes/admin/settings/register-settings.php:1410
3322
  msgid "Miscellaneous"
3323
  msgstr ""
3324
 
@@ -3431,23 +3431,23 @@ msgstr ""
3431
  msgid "Where does your store operate from?"
3432
  msgstr ""
3433
 
3434
- #: includes/admin/settings/register-settings.php:326
3435
  msgid "Base State / Province"
3436
  msgstr ""
3437
 
3438
- #: includes/admin/settings/register-settings.php:327
3439
  msgid "What state / province does your store operate from?"
3440
  msgstr ""
3441
 
3442
- #: includes/admin/settings/register-settings.php:335
3443
  msgid "Tracking"
3444
  msgstr ""
3445
 
3446
- #: includes/admin/settings/register-settings.php:341
3447
  msgid "Allow Usage Tracking?"
3448
  msgstr ""
3449
 
3450
- #: includes/admin/settings/register-settings.php:343
3451
  msgid ""
3452
  "Allow Easy Digital Downloads to anonymously track how this plugin is used "
3453
  "and help us make the plugin better. Opt-in to tracking and our newsletter "
@@ -3456,370 +3456,370 @@ msgid ""
3456
  "is tracked."
3457
  msgstr ""
3458
 
3459
- #: includes/admin/settings/register-settings.php:353
3460
  msgid ""
3461
  "Choose your currency. Note that some payment gateways have currency "
3462
  "restrictions."
3463
  msgstr ""
3464
 
3465
- #: includes/admin/settings/register-settings.php:360
3466
  msgid "Currency Position"
3467
  msgstr ""
3468
 
3469
- #: includes/admin/settings/register-settings.php:361
3470
  msgid "Choose the location of the currency sign."
3471
  msgstr ""
3472
 
3473
- #: includes/admin/settings/register-settings.php:364
3474
  msgid "Before - $10"
3475
  msgstr ""
3476
 
3477
- #: includes/admin/settings/register-settings.php:365
3478
  msgid "After - 10$"
3479
  msgstr ""
3480
 
3481
- #: includes/admin/settings/register-settings.php:370
3482
  msgid "Thousands Separator"
3483
  msgstr ""
3484
 
3485
- #: includes/admin/settings/register-settings.php:371
3486
  msgid "The symbol (usually , or .) to separate thousands."
3487
  msgstr ""
3488
 
3489
- #: includes/admin/settings/register-settings.php:378
3490
  msgid "Decimal Separator"
3491
  msgstr ""
3492
 
3493
- #: includes/admin/settings/register-settings.php:379
3494
  msgid "The symbol (usually , or .) to separate decimal points."
3495
  msgstr ""
3496
 
3497
- #: includes/admin/settings/register-settings.php:388
3498
- #: includes/admin/settings/register-settings.php:1388
3499
  msgid "API"
3500
  msgstr ""
3501
 
3502
- #: includes/admin/settings/register-settings.php:391
3503
  msgid "API Settings"
3504
  msgstr ""
3505
 
3506
- #: includes/admin/settings/register-settings.php:392
3507
  msgid ""
3508
  "The Easy Digital Downloads REST API provides access to store data through "
3509
  "our API endpoints. Enable this setting if you would like all user accounts "
3510
  "to be able to generate their own API keys."
3511
  msgstr ""
3512
 
3513
- #: includes/admin/settings/register-settings.php:396
3514
  msgid "Allow User Keys"
3515
  msgstr ""
3516
 
3517
- #: includes/admin/settings/register-settings.php:397
3518
  msgid ""
3519
  "Check this box to allow all users to generate API keys. Users with the "
3520
  "'manage_shop_settings' capability are always allowed to generate keys."
3521
  msgstr ""
3522
 
3523
- #: includes/admin/settings/register-settings.php:402
3524
  msgid ""
3525
  "Visit the <a href=\"%s\" target=\"_blank\">REST API documentation</a> for "
3526
  "further information."
3527
  msgstr ""
3528
 
3529
- #: includes/admin/settings/register-settings.php:414
3530
  msgid "Test Mode"
3531
  msgstr ""
3532
 
3533
- #: includes/admin/settings/register-settings.php:415
3534
  msgid ""
3535
  "While in test mode no live transactions are processed. To fully use test "
3536
  "mode, you must have a sandbox (test) account for the payment gateway you "
3537
  "are testing."
3538
  msgstr ""
3539
 
3540
- #: includes/admin/settings/register-settings.php:421
3541
  msgid "Choose the payment gateways you want to enable."
3542
  msgstr ""
3543
 
3544
- #: includes/admin/settings/register-settings.php:427
3545
  msgid "Default Gateway"
3546
  msgstr ""
3547
 
3548
- #: includes/admin/settings/register-settings.php:428
3549
  msgid "This gateway will be loaded automatically with the checkout page."
3550
  msgstr ""
3551
 
3552
- #: includes/admin/settings/register-settings.php:434
3553
  msgid "Accepted Payment Method Icons"
3554
  msgstr ""
3555
 
3556
- #: includes/admin/settings/register-settings.php:435
3557
  msgid "Display icons for the selected payment methods."
3558
  msgstr ""
3559
 
3560
- #: includes/admin/settings/register-settings.php:435
3561
  msgid ""
3562
  "You will also need to configure your gateway settings if you are accepting "
3563
  "credit cards."
3564
  msgstr ""
3565
 
3566
- #: includes/admin/settings/register-settings.php:455
3567
  msgid "Email Template"
3568
  msgstr ""
3569
 
3570
- #: includes/admin/settings/register-settings.php:456
3571
  msgid ""
3572
  "Choose a template. Click \"Save Changes\" then \"Preview Purchase Receipt\" "
3573
  "to see the new template."
3574
  msgstr ""
3575
 
3576
- #: includes/admin/settings/register-settings.php:462
3577
  msgid "Logo"
3578
  msgstr ""
3579
 
3580
- #: includes/admin/settings/register-settings.php:463
3581
  msgid ""
3582
  "Upload or choose a logo to be displayed at the top of the purchase receipt "
3583
  "emails. Displayed on HTML emails only."
3584
  msgstr ""
3585
 
3586
- #: includes/admin/settings/register-settings.php:468
3587
  msgid "From Name"
3588
  msgstr ""
3589
 
3590
- #: includes/admin/settings/register-settings.php:469
3591
  msgid ""
3592
  "The name purchase receipts are said to come from. This should probably be "
3593
  "your site or shop name."
3594
  msgstr ""
3595
 
3596
- #: includes/admin/settings/register-settings.php:475
3597
  msgid "From Email"
3598
  msgstr ""
3599
 
3600
- #: includes/admin/settings/register-settings.php:476
3601
  msgid ""
3602
  "Email to send purchase receipts from. This will act as the \"from\" and "
3603
  "\"reply-to\" address."
3604
  msgstr ""
3605
 
3606
- #: includes/admin/settings/register-settings.php:496
3607
  msgid "Purchase Email Subject"
3608
  msgstr ""
3609
 
3610
- #: includes/admin/settings/register-settings.php:497
3611
  msgid "Enter the subject line for the purchase receipt email."
3612
  msgstr ""
3613
 
3614
- #: includes/admin/settings/register-settings.php:499
3615
- #: includes/admin/settings/register-settings.php:506
3616
- #: includes/admin/settings/register-settings.php:510
3617
  #: includes/emails/functions.php:45 includes/emails/functions.php:49
3618
  #: includes/emails/functions.php:87 includes/emails/functions.php:91
3619
  #: includes/emails/template.php:141
3620
  msgid "Purchase Receipt"
3621
  msgstr ""
3622
 
3623
- #: includes/admin/settings/register-settings.php:503
3624
  msgid "Purchase Email Heading"
3625
  msgstr ""
3626
 
3627
- #: includes/admin/settings/register-settings.php:504
3628
  msgid "Enter the heading for the purchase receipt email."
3629
  msgstr ""
3630
 
3631
- #: includes/admin/settings/register-settings.php:511
3632
  msgid ""
3633
  "Enter the text that is sent as purchase receipt email to users after "
3634
  "completion of a successful purchase. HTML is accepted. Available template "
3635
  "tags:"
3636
  msgstr ""
3637
 
3638
- #: includes/admin/settings/register-settings.php:513
3639
  #: includes/emails/template.php:159
3640
  msgid "Dear"
3641
  msgstr ""
3642
 
3643
- #: includes/admin/settings/register-settings.php:513
3644
  #: includes/emails/template.php:160
3645
  msgid ""
3646
  "Thank you for your purchase. Please click on the link(s) below to download "
3647
  "your files."
3648
  msgstr ""
3649
 
3650
- #: includes/admin/settings/register-settings.php:519
3651
  msgid "Sale Notification Subject"
3652
  msgstr ""
3653
 
3654
- #: includes/admin/settings/register-settings.php:520
3655
  msgid "Enter the subject line for the sale notification email."
3656
  msgstr ""
3657
 
3658
- #: includes/admin/settings/register-settings.php:526
3659
  msgid "Sale Notification Heading"
3660
  msgstr ""
3661
 
3662
- #: includes/admin/settings/register-settings.php:527
3663
  msgid "Enter the heading for the sale notification email."
3664
  msgstr ""
3665
 
3666
- #: includes/admin/settings/register-settings.php:529
3667
  #: includes/emails/functions.php:140
3668
  msgid "New Sale!"
3669
  msgstr ""
3670
 
3671
- #: includes/admin/settings/register-settings.php:533
3672
  msgid "Sale Notification"
3673
  msgstr ""
3674
 
3675
- #: includes/admin/settings/register-settings.php:534
3676
  msgid ""
3677
  "Enter the text that is sent as sale notification email after completion of "
3678
  "a purchase. HTML is accepted. Available template tags:"
3679
  msgstr ""
3680
 
3681
- #: includes/admin/settings/register-settings.php:540
3682
  msgid "Sale Notification Emails"
3683
  msgstr ""
3684
 
3685
- #: includes/admin/settings/register-settings.php:541
3686
  msgid ""
3687
  "Enter the email address(es) that should receive a notification anytime a "
3688
  "sale is made, one per line."
3689
  msgstr ""
3690
 
3691
- #: includes/admin/settings/register-settings.php:547
3692
  msgid "Disable Admin Notifications"
3693
  msgstr ""
3694
 
3695
- #: includes/admin/settings/register-settings.php:548
3696
  msgid "Check this box if you do not want to receive sales notification emails."
3697
  msgstr ""
3698
 
3699
- #: includes/admin/settings/register-settings.php:560
3700
  msgid "Disable Styles"
3701
  msgstr ""
3702
 
3703
- #: includes/admin/settings/register-settings.php:561
3704
  msgid ""
3705
  "Check this to disable all included styling of buttons, checkout fields, and "
3706
  "all other elements."
3707
  msgstr ""
3708
 
3709
- #: includes/admin/settings/register-settings.php:563
3710
  msgid "Disabling Styles"
3711
  msgstr ""
3712
 
3713
- #: includes/admin/settings/register-settings.php:564
3714
  msgid ""
3715
  "If your theme has a complete custom CSS file for Easy Digital Downloads, "
3716
  "you may wish to disable our default styles. This is not recommended unless "
3717
  "you're sure your theme has a complete custom CSS."
3718
  msgstr ""
3719
 
3720
- #: includes/admin/settings/register-settings.php:568
3721
  msgid "Buttons"
3722
  msgstr ""
3723
 
3724
- #: includes/admin/settings/register-settings.php:569
3725
  msgid "Options for add to cart and purchase buttons"
3726
  msgstr ""
3727
 
3728
- #: includes/admin/settings/register-settings.php:574
3729
  msgid "Default Button Style"
3730
  msgstr ""
3731
 
3732
- #: includes/admin/settings/register-settings.php:575
3733
  msgid "Choose the style you want to use for the buttons."
3734
  msgstr ""
3735
 
3736
- #: includes/admin/settings/register-settings.php:581
3737
  msgid "Default Button Color"
3738
  msgstr ""
3739
 
3740
- #: includes/admin/settings/register-settings.php:582
3741
  msgid "Choose the color you want to use for the buttons."
3742
  msgstr ""
3743
 
3744
- #: includes/admin/settings/register-settings.php:595
3745
  msgid "Need help?"
3746
  msgstr ""
3747
 
3748
- #: includes/admin/settings/register-settings.php:596
3749
  msgid ""
3750
  "Visit the <a href=\"%s\" target=\"_blank\">Tax setup documentation</a> for "
3751
  "further information. If you need VAT support, there are options listed on "
3752
  "the documentation page."
3753
  msgstr ""
3754
 
3755
- #: includes/admin/settings/register-settings.php:601
3756
  msgid "Enable Taxes"
3757
  msgstr ""
3758
 
3759
- #: includes/admin/settings/register-settings.php:602
3760
  msgid "Check this to enable taxes on purchases."
3761
  msgstr ""
3762
 
3763
- #: includes/admin/settings/register-settings.php:604
3764
  msgid "Enabling Taxes"
3765
  msgstr ""
3766
 
3767
- #: includes/admin/settings/register-settings.php:605
3768
  msgid ""
3769
  "With taxes enabled, Easy Digital Downloads will use the rules below to "
3770
  "charge tax to customers. With taxes enabled, customers are required to "
3771
  "input their address on checkout so that taxes can be properly calculated."
3772
  msgstr ""
3773
 
3774
- #: includes/admin/settings/register-settings.php:609
3775
  msgid "Tax Rates"
3776
  msgstr ""
3777
 
3778
- #: includes/admin/settings/register-settings.php:610
3779
  msgid ""
3780
  "Add tax rates for specific regions. Enter a percentage, such as 6.5 for "
3781
  "6.5%."
3782
  msgstr ""
3783
 
3784
- #: includes/admin/settings/register-settings.php:615
3785
- #: includes/admin/settings/register-settings.php:619
3786
  msgid "Fallback Tax Rate"
3787
  msgstr ""
3788
 
3789
- #: includes/admin/settings/register-settings.php:616
3790
  msgid ""
3791
  "Customers not in a specific rate will be charged this tax rate. Enter a "
3792
  "percentage, such as 6.5 for 6.5%. "
3793
  msgstr ""
3794
 
3795
- #: includes/admin/settings/register-settings.php:620
3796
  msgid ""
3797
  "If the customer's address fails to meet the above tax rules, you can define "
3798
  "a `default` tax rate to be applied to all other customers. Enter a "
3799
  "percentage, such as 6.5 for 6.5%."
3800
  msgstr ""
3801
 
3802
- #: includes/admin/settings/register-settings.php:624
3803
  msgid "Prices entered with tax"
3804
  msgstr ""
3805
 
3806
- #: includes/admin/settings/register-settings.php:625
3807
  msgid "This option affects how you enter prices."
3808
  msgstr ""
3809
 
3810
- #: includes/admin/settings/register-settings.php:629
3811
  msgid "Yes, I will enter prices inclusive of tax"
3812
  msgstr ""
3813
 
3814
- #: includes/admin/settings/register-settings.php:630
3815
  msgid "No, I will enter prices exclusive of tax"
3816
  msgstr ""
3817
 
3818
- #: includes/admin/settings/register-settings.php:632
3819
  msgid "Prices Inclusive of Tax"
3820
  msgstr ""
3821
 
3822
- #: includes/admin/settings/register-settings.php:633
3823
  msgid ""
3824
  "When using prices inclusive of tax, you will be entering your prices as the "
3825
  "total amount you want a customer to pay for the download, including tax. "
@@ -3827,217 +3827,217 @@ msgid ""
3827
  "for the defined total price."
3828
  msgstr ""
3829
 
3830
- #: includes/admin/settings/register-settings.php:637
3831
  msgid "Display Tax Rate on Prices"
3832
  msgstr ""
3833
 
3834
- #: includes/admin/settings/register-settings.php:638
3835
  msgid "Some countries require a notice when product prices include tax."
3836
  msgstr ""
3837
 
3838
- #: includes/admin/settings/register-settings.php:643
3839
  msgid "Display during checkout"
3840
  msgstr ""
3841
 
3842
- #: includes/admin/settings/register-settings.php:644
3843
  msgid "Should prices on the checkout page be shown with or without tax?"
3844
  msgstr ""
3845
 
3846
- #: includes/admin/settings/register-settings.php:648
3847
  msgid "Including tax"
3848
  msgstr ""
3849
 
3850
- #: includes/admin/settings/register-settings.php:649
3851
  msgid "Excluding tax"
3852
  msgstr ""
3853
 
3854
- #: includes/admin/settings/register-settings.php:651
3855
  msgid "Taxes Displayed for Products on Checkout"
3856
  msgstr ""
3857
 
3858
- #: includes/admin/settings/register-settings.php:652
3859
  msgid ""
3860
  "This option will determine whether the product price displays with or "
3861
  "without tax on checkout."
3862
  msgstr ""
3863
 
3864
- #: includes/admin/settings/register-settings.php:670
3865
  #: includes/admin/settings/register-settings.php:673
 
3866
  msgid "Redirect to Checkout"
3867
  msgstr ""
3868
 
3869
- #: includes/admin/settings/register-settings.php:671
3870
  msgid "Immediately redirect to checkout after adding an item to the cart?"
3871
  msgstr ""
3872
 
3873
- #: includes/admin/settings/register-settings.php:674
3874
  msgid ""
3875
  "When enabled, once an item has been added to the cart, the customer will be "
3876
  "redirected directly to your checkout page. This is useful for stores that "
3877
  "sell single items."
3878
  msgstr ""
3879
 
3880
- #: includes/admin/settings/register-settings.php:678
3881
  msgid "Cart Item Quantities"
3882
  msgstr ""
3883
 
3884
- #: includes/admin/settings/register-settings.php:679
3885
  msgid ""
3886
  "Allow quantities to be adjusted when adding %s to the cart, and while "
3887
  "viewing the checkout cart."
3888
  msgstr ""
3889
 
3890
- #: includes/admin/settings/register-settings.php:684
3891
  msgid "Debug Mode"
3892
  msgstr ""
3893
 
3894
- #: includes/admin/settings/register-settings.php:685
3895
  msgid ""
3896
  "Check this box to enable debug mode. When enabled, debug messages will be "
3897
  "logged and shown in Downloads &rarr; Tools &rarr; Debug Log."
3898
  msgstr ""
3899
 
3900
- #: includes/admin/settings/register-settings.php:690
3901
  msgid "Remove Data on Uninstall?"
3902
  msgstr ""
3903
 
3904
- #: includes/admin/settings/register-settings.php:691
3905
  msgid ""
3906
  "Check this box if you would like EDD to completely remove all of its data "
3907
  "when the plugin is deleted."
3908
  msgstr ""
3909
 
3910
- #: includes/admin/settings/register-settings.php:698
3911
  msgid "Enforce SSL on Checkout"
3912
  msgstr ""
3913
 
3914
- #: includes/admin/settings/register-settings.php:699
3915
  msgid ""
3916
  "Check this to force users to be redirected to the secure checkout page. You "
3917
  "must have an SSL certificate installed to use this option."
3918
  msgstr ""
3919
 
3920
- #: includes/admin/settings/register-settings.php:704
3921
  #: includes/admin/settings/register-settings.php:707
 
3922
  msgid "Require Login"
3923
  msgstr ""
3924
 
3925
- #: includes/admin/settings/register-settings.php:705
3926
  msgid "Require that users be logged-in to purchase files."
3927
  msgstr ""
3928
 
3929
- #: includes/admin/settings/register-settings.php:708
3930
  msgid ""
3931
  "You can require that customers create and login to user accounts prior to "
3932
  "purchasing from your store by enabling this option. When unchecked, users "
3933
  "can purchase without being logged in by using their name and email address."
3934
  msgstr ""
3935
 
3936
- #: includes/admin/settings/register-settings.php:712
3937
  msgid "Show Register / Login Form?"
3938
  msgstr ""
3939
 
3940
- #: includes/admin/settings/register-settings.php:713
3941
  msgid ""
3942
  "Display the registration and login forms on the checkout page for "
3943
  "non-logged-in users."
3944
  msgstr ""
3945
 
3946
- #: includes/admin/settings/register-settings.php:717
3947
  msgid "Registration and Login Forms"
3948
  msgstr ""
3949
 
3950
- #: includes/admin/settings/register-settings.php:718
3951
  msgid "Registration Form Only"
3952
  msgstr ""
3953
 
3954
- #: includes/admin/settings/register-settings.php:719
3955
  msgid "Login Form Only"
3956
  msgstr ""
3957
 
3958
- #: includes/admin/settings/register-settings.php:725
3959
  msgid "Multiple Discounts"
3960
  msgstr ""
3961
 
3962
- #: includes/admin/settings/register-settings.php:726
3963
  msgid "Allow customers to use multiple discounts on the same purchase?"
3964
  msgstr ""
3965
 
3966
- #: includes/admin/settings/register-settings.php:731
3967
  msgid "Enable Cart Saving"
3968
  msgstr ""
3969
 
3970
- #: includes/admin/settings/register-settings.php:732
3971
  msgid "Check this to enable cart saving on the checkout."
3972
  msgstr ""
3973
 
3974
- #: includes/admin/settings/register-settings.php:734
3975
  msgid "Cart Saving"
3976
  msgstr ""
3977
 
3978
- #: includes/admin/settings/register-settings.php:735
3979
  msgid ""
3980
  "Cart saving allows shoppers to create a temporary link to their current "
3981
  "shopping cart so they can come back to it later, or share it with someone."
3982
  msgstr ""
3983
 
3984
- #: includes/admin/settings/register-settings.php:741
3985
  msgid "Complete Purchase Text"
3986
  msgstr ""
3987
 
3988
- #: includes/admin/settings/register-settings.php:742
3989
  msgid "The button label for completing a purchase."
3990
  msgstr ""
3991
 
3992
- #: includes/admin/settings/register-settings.php:748
3993
  msgid "Complete Free Purchase Text"
3994
  msgstr ""
3995
 
3996
- #: includes/admin/settings/register-settings.php:749
3997
  msgid "The button label for completing a free purchase."
3998
  msgstr ""
3999
 
4000
- #: includes/admin/settings/register-settings.php:751
4001
  #: includes/checkout/template.php:987
4002
  msgid "Free Download"
4003
  msgstr ""
4004
 
4005
- #: includes/admin/settings/register-settings.php:755
4006
  msgid "Add to Cart Text"
4007
  msgstr ""
4008
 
4009
- #: includes/admin/settings/register-settings.php:756
4010
  msgid "Text shown on the Add to Cart Buttons."
4011
  msgstr ""
4012
 
4013
- #: includes/admin/settings/register-settings.php:762
4014
  msgid "Checkout Button Text"
4015
  msgstr ""
4016
 
4017
- #: includes/admin/settings/register-settings.php:763
4018
  msgid ""
4019
  "Text shown on the Add to Cart Button when the product is already in the "
4020
  "cart."
4021
  msgstr ""
4022
 
4023
- #: includes/admin/settings/register-settings.php:769
4024
  msgid "Buy Now Text"
4025
  msgstr ""
4026
 
4027
- #: includes/admin/settings/register-settings.php:770
4028
  msgid "Text shown on the Buy Now Buttons."
4029
  msgstr ""
4030
 
4031
- #: includes/admin/settings/register-settings.php:778
4032
  #: includes/admin/settings/register-settings.php:781
 
4033
  msgid "Download Method"
4034
  msgstr ""
4035
 
4036
- #: includes/admin/settings/register-settings.php:779
4037
  msgid "Select the file download method. Note, not all methods work on all servers."
4038
  msgstr ""
4039
 
4040
- #: includes/admin/settings/register-settings.php:782
4041
  msgid ""
4042
  "Due to its consistency in multiple platforms and better file protection, "
4043
  "'forced' is the default method. Because Easy Digital Downloads uses PHP to "
@@ -4048,35 +4048,35 @@ msgid ""
4048
  "method can help resolve this."
4049
  msgstr ""
4050
 
4051
- #: includes/admin/settings/register-settings.php:784
4052
  msgid "Forced"
4053
  msgstr ""
4054
 
4055
- #: includes/admin/settings/register-settings.php:785
4056
  msgid "Redirect"
4057
  msgstr ""
4058
 
4059
- #: includes/admin/settings/register-settings.php:790
4060
  msgid "Symlink File Downloads?"
4061
  msgstr ""
4062
 
4063
- #: includes/admin/settings/register-settings.php:791
4064
  msgid ""
4065
  "Check this if you are delivering really large files or having problems with "
4066
  "file downloads completing."
4067
  msgstr ""
4068
 
4069
- #: includes/admin/settings/register-settings.php:797
4070
  msgid ""
4071
  "The maximum number of times files can be downloaded for purchases. Can be "
4072
  "overwritten for each %s."
4073
  msgstr ""
4074
 
4075
- #: includes/admin/settings/register-settings.php:800
4076
  msgid "File Download Limits"
4077
  msgstr ""
4078
 
4079
- #: includes/admin/settings/register-settings.php:801
4080
  msgid ""
4081
  "Set the global default for the number of times a customer can download "
4082
  "items they purchase. Using a value of 0 is unlimited. This can be defined "
@@ -4084,18 +4084,18 @@ msgid ""
4084
  "individual purchase."
4085
  msgstr ""
4086
 
4087
- #: includes/admin/settings/register-settings.php:805
4088
- #: includes/admin/settings/register-settings.php:807
4089
  msgid "Download Link Expiration"
4090
  msgstr ""
4091
 
4092
- #: includes/admin/settings/register-settings.php:806
4093
  msgid ""
4094
  "How long should download links be valid for? Default is 24 hours from the "
4095
  "time they are generated. Enter a time in hours."
4096
  msgstr ""
4097
 
4098
- #: includes/admin/settings/register-settings.php:808
4099
  msgid ""
4100
  "When a customer receives a link to their downloads via email, in their "
4101
  "receipt, or in their purchase history, the link will only be valid for the "
@@ -4104,130 +4104,130 @@ msgid ""
4104
  "customer."
4105
  msgstr ""
4106
 
4107
- #: includes/admin/settings/register-settings.php:816
4108
  msgid "Disable Redownload?"
4109
  msgstr ""
4110
 
4111
- #: includes/admin/settings/register-settings.php:817
4112
  msgid ""
4113
  "Check this if you do not want to allow users to redownload items from their "
4114
  "purchase history."
4115
  msgstr ""
4116
 
4117
- #: includes/admin/settings/register-settings.php:824
4118
  msgid "Enable SKU Entry"
4119
  msgstr ""
4120
 
4121
- #: includes/admin/settings/register-settings.php:825
4122
  msgid ""
4123
  "Check this box to allow entry of product SKUs. SKUs will be shown on "
4124
  "purchase receipt and exported purchase histories."
4125
  msgstr ""
4126
 
4127
- #: includes/admin/settings/register-settings.php:830
4128
  msgid "Sequential Order Numbers"
4129
  msgstr ""
4130
 
4131
- #: includes/admin/settings/register-settings.php:831
4132
  msgid "Check this box to enable sequential order numbers."
4133
  msgstr ""
4134
 
4135
- #: includes/admin/settings/register-settings.php:836
4136
  msgid "Sequential Starting Number"
4137
  msgstr ""
4138
 
4139
- #: includes/admin/settings/register-settings.php:837
4140
  msgid "The number at which the sequence should begin."
4141
  msgstr ""
4142
 
4143
- #: includes/admin/settings/register-settings.php:844
4144
  msgid "Sequential Number Prefix"
4145
  msgstr ""
4146
 
4147
- #: includes/admin/settings/register-settings.php:845
4148
  msgid "A prefix to prepend to all sequential order numbers."
4149
  msgstr ""
4150
 
4151
- #: includes/admin/settings/register-settings.php:850
4152
  msgid "Sequential Number Postfix"
4153
  msgstr ""
4154
 
4155
- #: includes/admin/settings/register-settings.php:851
4156
  msgid "A postfix to append to all sequential order numbers."
4157
  msgstr ""
4158
 
4159
- #: includes/admin/settings/register-settings.php:858
4160
  msgid "Agree to Terms"
4161
  msgstr ""
4162
 
4163
- #: includes/admin/settings/register-settings.php:859
4164
  msgid ""
4165
  "Check this to show an agree to terms on checkout that users must agree to "
4166
  "before purchasing."
4167
  msgstr ""
4168
 
4169
- #: includes/admin/settings/register-settings.php:864
4170
  msgid "Agree to Terms Label"
4171
  msgstr ""
4172
 
4173
- #: includes/admin/settings/register-settings.php:865
4174
  msgid "Label shown next to the agree to terms checkbox."
4175
  msgstr ""
4176
 
4177
- #: includes/admin/settings/register-settings.php:871
4178
  msgid "Agreement Text"
4179
  msgstr ""
4180
 
4181
- #: includes/admin/settings/register-settings.php:872
4182
  msgid "If Agree to Terms is checked, enter the agreement terms here."
4183
  msgstr ""
4184
 
4185
- #: includes/admin/settings/register-settings.php:883
4186
  msgid "Agree to Privacy Policy"
4187
  msgstr ""
4188
 
4189
- #: includes/admin/settings/register-settings.php:884
4190
  msgid ""
4191
  "Check this to show an agree to Privacy Policy on checkout that users must "
4192
  "agree to before purchasing."
4193
  msgstr ""
4194
 
4195
- #: includes/admin/settings/register-settings.php:889
4196
  msgid "Agree to Privacy Policy Label"
4197
  msgstr ""
4198
 
4199
- #: includes/admin/settings/register-settings.php:890
4200
  msgid "Label shown next to the agree to Privacy Policy checkbox."
4201
  msgstr ""
4202
 
4203
- #: includes/admin/settings/register-settings.php:896
4204
  msgid "Show the Privacy Policy on checkout"
4205
  msgstr ""
4206
 
4207
- #: includes/admin/settings/register-settings.php:897
4208
  msgid "Display your Privacy Policy on checkout."
4209
  msgstr ""
4210
 
4211
- #: includes/admin/settings/register-settings.php:897
4212
  msgid "Set your Privacy Policy here"
4213
  msgstr ""
4214
 
4215
- #: includes/admin/settings/register-settings.php:910
4216
  msgid "Payment Status Actions"
4217
  msgstr ""
4218
 
4219
- #: includes/admin/settings/register-settings.php:912
4220
  msgid ""
4221
  "When a user requests to be anonymized or removed from a site, these are the "
4222
  "actions that will be taken on payments associated with their customer, by "
4223
  "status."
4224
  msgstr ""
4225
 
4226
- #: includes/admin/settings/register-settings.php:913
4227
  msgid "What settings should I use?"
4228
  msgstr ""
4229
 
4230
- #: includes/admin/settings/register-settings.php:914
4231
  msgid ""
4232
  "By default, Easy Digital Downloads sets suggested actions based on the "
4233
  "Payment Status. These are purely recommendations, and you may need to "
@@ -4235,208 +4235,208 @@ msgid ""
4235
  "leave these settings as is."
4236
  msgstr ""
4237
 
4238
- #: includes/admin/settings/register-settings.php:925
4239
  msgid "No Action"
4240
  msgstr ""
4241
 
4242
- #: includes/admin/settings/register-settings.php:926
4243
  msgid "Anonymize"
4244
  msgstr ""
4245
 
4246
- #: includes/admin/settings/register-settings.php:966
4247
  msgid "Buy Now Disabled"
4248
  msgstr ""
4249
 
4250
- #: includes/admin/settings/register-settings.php:967
4251
  msgid ""
4252
  "Buy Now buttons are only available for stores that have a single supported "
4253
  "gateway active and that do not use taxes."
4254
  msgstr ""
4255
 
4256
- #: includes/admin/settings/register-settings.php:1070
4257
  msgid "Settings updated."
4258
  msgstr ""
4259
 
4260
- #: includes/admin/settings/register-settings.php:1223
4261
  msgid "Error setting default gateway. No gateways are enabled."
4262
  msgstr ""
4263
 
4264
- #: includes/admin/settings/register-settings.php:1236
4265
  msgid "%s could not be set as the default gateway. It must first be enabled."
4266
  msgstr ""
4267
 
4268
- #: includes/admin/settings/register-settings.php:1335
4269
  msgid "Privacy"
4270
  msgstr ""
4271
 
4272
- #: includes/admin/settings/register-settings.php:1341
4273
  msgid "Licenses"
4274
  msgstr ""
4275
 
4276
- #: includes/admin/settings/register-settings.php:1344
4277
  msgid "Misc"
4278
  msgstr ""
4279
 
4280
- #: includes/admin/settings/register-settings.php:1392
4281
  #: includes/gateways/functions.php:25 includes/gateways/paypal-standard.php:33
4282
  msgid "PayPal Standard"
4283
  msgstr ""
4284
 
4285
- #: includes/admin/settings/register-settings.php:1396
4286
  msgid "Purchase Receipts"
4287
  msgstr ""
4288
 
4289
- #: includes/admin/settings/register-settings.php:1397
4290
  msgid "New Sale Notifications"
4291
  msgstr ""
4292
 
4293
- #: includes/admin/settings/register-settings.php:1406
4294
  msgid "Main"
4295
  msgstr ""
4296
 
4297
- #: includes/admin/settings/register-settings.php:1411 includes/install.php:92
4298
  #: templates/widget-cart-checkout.php:6 templates/widget-cart-empty.php:7
4299
  msgid "Checkout"
4300
  msgstr ""
4301
 
4302
- #: includes/admin/settings/register-settings.php:1412
4303
  msgid "Button Text"
4304
  msgstr ""
4305
 
4306
- #: includes/admin/settings/register-settings.php:1414
4307
  msgid "Accounting"
4308
  msgstr ""
4309
 
4310
- #: includes/admin/settings/register-settings.php:1415
4311
  msgid "Terms of Agreement"
4312
  msgstr ""
4313
 
4314
- #: includes/admin/settings/register-settings.php:1419
4315
  msgid "Export & Erase"
4316
  msgstr ""
4317
 
4318
- #: includes/admin/settings/register-settings.php:1661
4319
  msgid ""
4320
  "Don't see what you need? More Payment Gateway options are available <a "
4321
  "href=\"%s\">here</a>."
4322
  msgstr ""
4323
 
4324
- #: includes/admin/settings/register-settings.php:1882
4325
  msgid "The callback function used for the %s setting is missing."
4326
  msgstr ""
4327
 
4328
- #: includes/admin/settings/register-settings.php:2040
4329
  msgid "Upload File"
4330
  msgstr ""
4331
 
4332
- #: includes/admin/settings/register-settings.php:2140
4333
  msgid "Country Wide"
4334
  msgstr ""
4335
 
4336
- #: includes/admin/settings/register-settings.php:2141
4337
  msgid "Rate"
4338
  msgstr ""
4339
 
4340
- #: includes/admin/settings/register-settings.php:2141
4341
  msgid ""
4342
  "<strong>Regional tax rates: </strong>When a customer enters an address on "
4343
  "checkout that matches the specified region for this tax rate, the cart tax "
4344
  "will adjust automatically. Enter a percentage, such as 6.5 for 6.5%."
4345
  msgstr ""
4346
 
4347
- #: includes/admin/settings/register-settings.php:2158
4348
- #: includes/admin/settings/register-settings.php:2203
4349
  msgid "Choose a country"
4350
  msgstr ""
4351
 
4352
- #: includes/admin/settings/register-settings.php:2173
4353
  msgid "Choose a state"
4354
  msgstr ""
4355
 
4356
- #: includes/admin/settings/register-settings.php:2185
4357
- #: includes/admin/settings/register-settings.php:2213
4358
  msgid "Apply to whole country"
4359
  msgstr ""
4360
 
4361
- #: includes/admin/settings/register-settings.php:2188
4362
- #: includes/admin/settings/register-settings.php:2216
4363
  msgid "Remove Rate"
4364
  msgstr ""
4365
 
4366
- #: includes/admin/settings/register-settings.php:2221
4367
  msgid "Add Tax Rate"
4368
  msgstr ""
4369
 
4370
- #: includes/admin/settings/register-settings.php:2274
4371
  msgid ""
4372
  "Your license key expired on %s. Please <a href=\"%s\" "
4373
  "target=\"_blank\">renew your license key</a>."
4374
  msgstr ""
4375
 
4376
- #: includes/admin/settings/register-settings.php:2287
4377
  msgid ""
4378
  "Your license key has been disabled. Please <a href=\"%s\" "
4379
  "target=\"_blank\">contact support</a> for more information."
4380
  msgstr ""
4381
 
4382
- #: includes/admin/settings/register-settings.php:2299
4383
  msgid ""
4384
  "Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
4385
  "page</a> and verify it."
4386
  msgstr ""
4387
 
4388
- #: includes/admin/settings/register-settings.php:2312
4389
  msgid ""
4390
  "Your %s is not active for this URL. Please <a href=\"%s\" "
4391
  "target=\"_blank\">visit your account page</a> to manage your license key "
4392
  "URLs."
4393
  msgstr ""
4394
 
4395
- #: includes/admin/settings/register-settings.php:2324
4396
  msgid "This appears to be an invalid license key for %s."
4397
  msgstr ""
4398
 
4399
- #: includes/admin/settings/register-settings.php:2333
4400
  msgid ""
4401
  "Your license key has reached its activation limit. <a href=\"%s\">View "
4402
  "possible upgrades</a> now."
4403
  msgstr ""
4404
 
4405
- #: includes/admin/settings/register-settings.php:2342
4406
  msgid ""
4407
  "The key you entered belongs to a bundle, please use the product specific "
4408
  "license key."
4409
  msgstr ""
4410
 
4411
- #: includes/admin/settings/register-settings.php:2350
4412
  msgid "unknown_error"
4413
  msgstr ""
4414
 
4415
- #: includes/admin/settings/register-settings.php:2351
4416
  msgid ""
4417
  "There was an error with this license key: %s. Please <a href=\"%s\">contact "
4418
  "our support team</a>."
4419
  msgstr ""
4420
 
4421
- #: includes/admin/settings/register-settings.php:2371
4422
  msgid "License key never expires."
4423
  msgstr ""
4424
 
4425
- #: includes/admin/settings/register-settings.php:2378
4426
  msgid ""
4427
  "Your license key expires soon! It expires on %s. <a href=\"%s\" "
4428
  "target=\"_blank\">Renew your license key</a>."
4429
  msgstr ""
4430
 
4431
- #: includes/admin/settings/register-settings.php:2388
4432
  msgid "Your license key expires on %s."
4433
  msgstr ""
4434
 
4435
- #: includes/admin/settings/register-settings.php:2406
4436
  msgid "To receive updates, please enter your valid %s license key."
4437
  msgstr ""
4438
 
4439
- #: includes/admin/settings/register-settings.php:2419
4440
  msgid "Deactivate License"
4441
  msgstr ""
4442
 
@@ -4901,11 +4901,11 @@ msgstr ""
4901
  msgid "Do not allow"
4902
  msgstr ""
4903
 
4904
- #: includes/admin/upgrades/classes/class-file-download-log-migration.php:150
4905
  msgid "You do not have permission to run this upgrade."
4906
  msgstr ""
4907
 
4908
- #: includes/admin/upgrades/classes/class-file-download-log-migration.php:164
4909
  msgid "File download logs updated successfully."
4910
  msgstr ""
4911
 
@@ -8452,13 +8452,13 @@ msgctxt "Date one to date two"
8452
  msgid "to"
8453
  msgstr ""
8454
 
8455
- #: includes/admin/settings/register-settings.php:765
8456
  #: includes/template-functions.php:79
8457
  msgctxt "text shown on the Add to Cart Button when the product is already in the cart"
8458
  msgid "Checkout"
8459
  msgstr ""
8460
 
8461
- #: includes/admin/settings/register-settings.php:955
8462
  msgctxt ""
8463
  "payment status labels for the privacy export & erase settings: Pending "
8464
  "Payments"
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.5\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
+ "POT-Creation-Date: 2018-07-12 17:29:20+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
79
  #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:153
80
  #: includes/admin/tools/class-edd-tools-reset-stats.php:179
81
  #: includes/admin/tools.php:1027 includes/admin/tools.php:1033
82
+ #: includes/admin/upgrades/classes/class-file-download-log-migration.php:136
83
  #: includes/admin/upgrades/upgrade-functions.php:221
84
  #: includes/admin/upgrades/upgrade-functions.php:537
85
  #: includes/admin/upgrades/upgrade-functions.php:619
196
 
197
  #: includes/admin/admin-pages.php:43 includes/admin/plugins.php:57
198
  #: includes/admin/settings/contextual-help.php:87
199
+ #: includes/admin/settings/register-settings.php:1341
200
  msgid "Extensions"
201
  msgstr ""
202
 
431
  #: includes/admin/discounts/class-discount-codes-table.php:267
432
  #: includes/admin/payments/class-payments-table.php:367
433
  #: includes/admin/payments/class-payments-table.php:435
434
+ #: includes/admin/settings/register-settings.php:930
435
  #: includes/payments/functions.php:1618
436
  msgid "Delete"
437
  msgstr ""
639
  msgstr ""
640
 
641
  #: includes/admin/customers/customers.php:269
642
+ #: includes/admin/settings/register-settings.php:2146
643
  #: includes/admin/tools.php:695 includes/checkout/template.php:435
644
  #: templates/shortcode-profile-editor.php:171
645
  msgid "State / Province"
744
  #: includes/admin/downloads/metabox.php:698
745
  #: includes/admin/downloads/metabox.php:823
746
  #: includes/admin/payments/view-order-details.php:490
747
+ #: includes/admin/settings/register-settings.php:2149 includes/scripts.php:227
748
  #: templates/checkout_cart.php:57 templates/checkout_cart.php:75
749
  #: templates/shortcode-profile-editor.php:123
750
  msgid "Remove"
1253
 
1254
  #: includes/admin/discounts/contextual-help.php:38
1255
  #: includes/admin/settings/contextual-help.php:42
1256
+ #: includes/admin/settings/register-settings.php:1333
1257
+ #: includes/admin/settings/register-settings.php:1389
1258
+ #: includes/admin/settings/register-settings.php:1394
1259
+ #: includes/admin/settings/register-settings.php:1398
 
1260
  #: includes/admin/settings/register-settings.php:1403
1261
+ #: includes/admin/settings/register-settings.php:1406
1262
+ #: includes/admin/settings/register-settings.php:1421
1263
  #: includes/admin/tools.php:68
1264
  msgid "General"
1265
  msgstr ""
1764
  msgstr ""
1765
 
1766
  #: includes/admin/downloads/metabox.php:1031
1767
+ #: includes/admin/settings/register-settings.php:747
1768
  #: includes/admin/thickbox.php:59 includes/checkout/template.php:984
1769
  #: includes/shortcodes.php:49 includes/template-functions.php:78
1770
  msgid "Purchase"
1805
  msgstr ""
1806
 
1807
  #: includes/admin/downloads/metabox.php:1105
1808
+ #: includes/admin/settings/register-settings.php:761
1809
  #: includes/admin/thickbox.php:97
1810
  msgid "Add to Cart"
1811
  msgstr ""
1812
 
1813
  #: includes/admin/downloads/metabox.php:1106
1814
+ #: includes/admin/settings/register-settings.php:775 includes/shortcodes.php:47
1815
  #: includes/template-functions.php:78
1816
  msgid "Buy Now"
1817
  msgstr ""
2245
  msgstr[1] ""
2246
 
2247
  #: includes/admin/payments/view-order-details.php:152
2248
+ #: includes/admin/settings/register-settings.php:723
2249
  msgid "None"
2250
  msgstr ""
2251
 
2421
  msgstr ""
2422
 
2423
  #: includes/admin/payments/view-order-details.php:753
2424
+ #: includes/admin/settings/register-settings.php:333
2425
  msgid "Select a state"
2426
  msgstr ""
2427
 
2611
 
2612
  #: includes/admin/reporting/class-export-payments.php:68
2613
  #: includes/admin/reporting/export/class-batch-export-payments.php:49
2614
+ #: includes/admin/settings/register-settings.php:2145
2615
  #: includes/admin/tools.php:713 templates/shortcode-profile-editor.php:162
2616
  msgid "Country"
2617
  msgstr ""
2827
  msgstr ""
2828
 
2829
  #: includes/admin/reporting/export/class-batch-export-downloads.php:53
2830
+ #: includes/admin/settings/register-settings.php:799
2831
  #: includes/admin/tools.php:896
2832
  msgid "File Download Limit"
2833
  msgstr ""
2875
  msgstr ""
2876
 
2877
  #: includes/admin/reporting/export/class-batch-export-payments.php:62
2878
+ #: includes/admin/settings/register-settings.php:355
2879
+ #: includes/admin/settings/register-settings.php:1390
2880
  msgid "Currency"
2881
  msgstr ""
2882
 
3008
  msgstr ""
3009
 
3010
  #: includes/admin/reporting/logs.php:144
3011
+ #: includes/admin/settings/register-settings.php:1416
3012
  #: includes/privacy-functions.php:544
3013
  msgid "File Downloads"
3014
  msgstr ""
3039
 
3040
  #: includes/admin/reporting/reports.php:59
3041
  #: includes/admin/settings/contextual-help.php:71
3042
+ #: includes/admin/settings/register-settings.php:1337
3043
  msgid "Taxes"
3044
  msgstr ""
3045
 
3185
  msgstr ""
3186
 
3187
  #: includes/admin/settings/contextual-help.php:48
3188
+ #: includes/admin/settings/register-settings.php:423
3189
+ #: includes/admin/settings/register-settings.php:1334
3190
  msgid "Payment Gateways"
3191
  msgstr ""
3192
 
3215
  msgstr ""
3216
 
3217
  #: includes/admin/settings/contextual-help.php:57
3218
+ #: includes/admin/settings/register-settings.php:1335
3219
  msgid "Emails"
3220
  msgstr ""
3221
 
3235
  msgstr ""
3236
 
3237
  #: includes/admin/settings/contextual-help.php:65
3238
+ #: includes/admin/settings/register-settings.php:1336
3239
  msgid "Styles"
3240
  msgstr ""
3241
 
3318
  msgstr ""
3319
 
3320
  #: includes/admin/settings/contextual-help.php:93
3321
+ #: includes/admin/settings/register-settings.php:1413
3322
  msgid "Miscellaneous"
3323
  msgstr ""
3324
 
3431
  msgid "Where does your store operate from?"
3432
  msgstr ""
3433
 
3434
+ #: includes/admin/settings/register-settings.php:329
3435
  msgid "Base State / Province"
3436
  msgstr ""
3437
 
3438
+ #: includes/admin/settings/register-settings.php:330
3439
  msgid "What state / province does your store operate from?"
3440
  msgstr ""
3441
 
3442
+ #: includes/admin/settings/register-settings.php:338
3443
  msgid "Tracking"
3444
  msgstr ""
3445
 
3446
+ #: includes/admin/settings/register-settings.php:344
3447
  msgid "Allow Usage Tracking?"
3448
  msgstr ""
3449
 
3450
+ #: includes/admin/settings/register-settings.php:346
3451
  msgid ""
3452
  "Allow Easy Digital Downloads to anonymously track how this plugin is used "
3453
  "and help us make the plugin better. Opt-in to tracking and our newsletter "
3456
  "is tracked."
3457
  msgstr ""
3458
 
3459
+ #: includes/admin/settings/register-settings.php:356
3460
  msgid ""
3461
  "Choose your currency. Note that some payment gateways have currency "
3462
  "restrictions."
3463
  msgstr ""
3464
 
3465
+ #: includes/admin/settings/register-settings.php:363
3466
  msgid "Currency Position"
3467
  msgstr ""
3468
 
3469
+ #: includes/admin/settings/register-settings.php:364
3470
  msgid "Choose the location of the currency sign."
3471
  msgstr ""
3472
 
3473
+ #: includes/admin/settings/register-settings.php:367
3474
  msgid "Before - $10"
3475
  msgstr ""
3476
 
3477
+ #: includes/admin/settings/register-settings.php:368
3478
  msgid "After - 10$"
3479
  msgstr ""
3480
 
3481
+ #: includes/admin/settings/register-settings.php:373
3482
  msgid "Thousands Separator"
3483
  msgstr ""
3484
 
3485
+ #: includes/admin/settings/register-settings.php:374
3486
  msgid "The symbol (usually , or .) to separate thousands."
3487
  msgstr ""
3488
 
3489
+ #: includes/admin/settings/register-settings.php:381
3490
  msgid "Decimal Separator"
3491
  msgstr ""
3492
 
3493
+ #: includes/admin/settings/register-settings.php:382
3494
  msgid "The symbol (usually , or .) to separate decimal points."
3495
  msgstr ""
3496
 
3497
+ #: includes/admin/settings/register-settings.php:391
3498
+ #: includes/admin/settings/register-settings.php:1391
3499
  msgid "API"
3500
  msgstr ""
3501
 
3502
+ #: includes/admin/settings/register-settings.php:394
3503
  msgid "API Settings"
3504
  msgstr ""
3505
 
3506
+ #: includes/admin/settings/register-settings.php:395
3507
  msgid ""
3508
  "The Easy Digital Downloads REST API provides access to store data through "
3509
  "our API endpoints. Enable this setting if you would like all user accounts "
3510
  "to be able to generate their own API keys."
3511
  msgstr ""
3512
 
3513
+ #: includes/admin/settings/register-settings.php:399
3514
  msgid "Allow User Keys"
3515
  msgstr ""
3516
 
3517
+ #: includes/admin/settings/register-settings.php:400
3518
  msgid ""
3519
  "Check this box to allow all users to generate API keys. Users with the "
3520
  "'manage_shop_settings' capability are always allowed to generate keys."
3521
  msgstr ""
3522
 
3523
+ #: includes/admin/settings/register-settings.php:405
3524
  msgid ""
3525
  "Visit the <a href=\"%s\" target=\"_blank\">REST API documentation</a> for "
3526
  "further information."
3527
  msgstr ""
3528
 
3529
+ #: includes/admin/settings/register-settings.php:417
3530
  msgid "Test Mode"
3531
  msgstr ""
3532
 
3533
+ #: includes/admin/settings/register-settings.php:418
3534
  msgid ""
3535
  "While in test mode no live transactions are processed. To fully use test "
3536
  "mode, you must have a sandbox (test) account for the payment gateway you "
3537
  "are testing."
3538
  msgstr ""
3539
 
3540
+ #: includes/admin/settings/register-settings.php:424
3541
  msgid "Choose the payment gateways you want to enable."
3542
  msgstr ""
3543
 
3544
+ #: includes/admin/settings/register-settings.php:430
3545
  msgid "Default Gateway"
3546
  msgstr ""
3547
 
3548
+ #: includes/admin/settings/register-settings.php:431
3549
  msgid "This gateway will be loaded automatically with the checkout page."
3550
  msgstr ""
3551
 
3552
+ #: includes/admin/settings/register-settings.php:437
3553
  msgid "Accepted Payment Method Icons"
3554
  msgstr ""
3555
 
3556
+ #: includes/admin/settings/register-settings.php:438
3557
  msgid "Display icons for the selected payment methods."
3558
  msgstr ""
3559
 
3560
+ #: includes/admin/settings/register-settings.php:438
3561
  msgid ""
3562
  "You will also need to configure your gateway settings if you are accepting "
3563
  "credit cards."
3564
  msgstr ""
3565
 
3566
+ #: includes/admin/settings/register-settings.php:458
3567
  msgid "Email Template"
3568
  msgstr ""
3569
 
3570
+ #: includes/admin/settings/register-settings.php:459
3571
  msgid ""
3572
  "Choose a template. Click \"Save Changes\" then \"Preview Purchase Receipt\" "
3573
  "to see the new template."
3574
  msgstr ""
3575
 
3576
+ #: includes/admin/settings/register-settings.php:465
3577
  msgid "Logo"
3578
  msgstr ""
3579
 
3580
+ #: includes/admin/settings/register-settings.php:466
3581
  msgid ""
3582
  "Upload or choose a logo to be displayed at the top of the purchase receipt "
3583
  "emails. Displayed on HTML emails only."
3584
  msgstr ""
3585
 
3586
+ #: includes/admin/settings/register-settings.php:471
3587
  msgid "From Name"
3588
  msgstr ""
3589
 
3590
+ #: includes/admin/settings/register-settings.php:472
3591
  msgid ""
3592
  "The name purchase receipts are said to come from. This should probably be "
3593
  "your site or shop name."
3594
  msgstr ""
3595
 
3596
+ #: includes/admin/settings/register-settings.php:478
3597
  msgid "From Email"
3598
  msgstr ""
3599
 
3600
+ #: includes/admin/settings/register-settings.php:479
3601
  msgid ""
3602
  "Email to send purchase receipts from. This will act as the \"from\" and "
3603
  "\"reply-to\" address."
3604
  msgstr ""
3605
 
3606
+ #: includes/admin/settings/register-settings.php:499
3607
  msgid "Purchase Email Subject"
3608
  msgstr ""
3609
 
3610
+ #: includes/admin/settings/register-settings.php:500
3611
  msgid "Enter the subject line for the purchase receipt email."
3612
  msgstr ""
3613
 
3614
+ #: includes/admin/settings/register-settings.php:502
3615
+ #: includes/admin/settings/register-settings.php:509
3616
+ #: includes/admin/settings/register-settings.php:513
3617
  #: includes/emails/functions.php:45 includes/emails/functions.php:49
3618
  #: includes/emails/functions.php:87 includes/emails/functions.php:91
3619
  #: includes/emails/template.php:141
3620
  msgid "Purchase Receipt"
3621
  msgstr ""
3622
 
3623
+ #: includes/admin/settings/register-settings.php:506
3624
  msgid "Purchase Email Heading"
3625
  msgstr ""
3626
 
3627
+ #: includes/admin/settings/register-settings.php:507
3628
  msgid "Enter the heading for the purchase receipt email."
3629
  msgstr ""
3630
 
3631
+ #: includes/admin/settings/register-settings.php:514
3632
  msgid ""
3633
  "Enter the text that is sent as purchase receipt email to users after "
3634
  "completion of a successful purchase. HTML is accepted. Available template "
3635
  "tags:"
3636
  msgstr ""
3637
 
3638
+ #: includes/admin/settings/register-settings.php:516
3639
  #: includes/emails/template.php:159
3640
  msgid "Dear"
3641
  msgstr ""
3642
 
3643
+ #: includes/admin/settings/register-settings.php:516
3644
  #: includes/emails/template.php:160
3645
  msgid ""
3646
  "Thank you for your purchase. Please click on the link(s) below to download "
3647
  "your files."
3648
  msgstr ""
3649
 
3650
+ #: includes/admin/settings/register-settings.php:522
3651
  msgid "Sale Notification Subject"
3652
  msgstr ""
3653
 
3654
+ #: includes/admin/settings/register-settings.php:523
3655
  msgid "Enter the subject line for the sale notification email."
3656
  msgstr ""
3657
 
3658
+ #: includes/admin/settings/register-settings.php:529
3659
  msgid "Sale Notification Heading"
3660
  msgstr ""
3661
 
3662
+ #: includes/admin/settings/register-settings.php:530
3663
  msgid "Enter the heading for the sale notification email."
3664
  msgstr ""
3665
 
3666
+ #: includes/admin/settings/register-settings.php:532
3667
  #: includes/emails/functions.php:140
3668
  msgid "New Sale!"
3669
  msgstr ""
3670
 
3671
+ #: includes/admin/settings/register-settings.php:536
3672
  msgid "Sale Notification"
3673
  msgstr ""
3674
 
3675
+ #: includes/admin/settings/register-settings.php:537
3676
  msgid ""
3677
  "Enter the text that is sent as sale notification email after completion of "
3678
  "a purchase. HTML is accepted. Available template tags:"
3679
  msgstr ""
3680
 
3681
+ #: includes/admin/settings/register-settings.php:543
3682
  msgid "Sale Notification Emails"
3683
  msgstr ""
3684
 
3685
+ #: includes/admin/settings/register-settings.php:544
3686
  msgid ""
3687
  "Enter the email address(es) that should receive a notification anytime a "
3688
  "sale is made, one per line."
3689
  msgstr ""
3690
 
3691
+ #: includes/admin/settings/register-settings.php:550
3692
  msgid "Disable Admin Notifications"
3693
  msgstr ""
3694
 
3695
+ #: includes/admin/settings/register-settings.php:551
3696
  msgid "Check this box if you do not want to receive sales notification emails."
3697
  msgstr ""
3698
 
3699
+ #: includes/admin/settings/register-settings.php:563
3700
  msgid "Disable Styles"
3701
  msgstr ""
3702
 
3703
+ #: includes/admin/settings/register-settings.php:564
3704
  msgid ""
3705
  "Check this to disable all included styling of buttons, checkout fields, and "
3706
  "all other elements."
3707
  msgstr ""
3708
 
3709
+ #: includes/admin/settings/register-settings.php:566
3710
  msgid "Disabling Styles"
3711
  msgstr ""
3712
 
3713
+ #: includes/admin/settings/register-settings.php:567
3714
  msgid ""
3715
  "If your theme has a complete custom CSS file for Easy Digital Downloads, "
3716
  "you may wish to disable our default styles. This is not recommended unless "
3717
  "you're sure your theme has a complete custom CSS."
3718
  msgstr ""
3719
 
3720
+ #: includes/admin/settings/register-settings.php:571
3721
  msgid "Buttons"
3722
  msgstr ""
3723
 
3724
+ #: includes/admin/settings/register-settings.php:572
3725
  msgid "Options for add to cart and purchase buttons"
3726
  msgstr ""
3727
 
3728
+ #: includes/admin/settings/register-settings.php:577
3729
  msgid "Default Button Style"
3730
  msgstr ""
3731
 
3732
+ #: includes/admin/settings/register-settings.php:578
3733
  msgid "Choose the style you want to use for the buttons."
3734
  msgstr ""
3735
 
3736
+ #: includes/admin/settings/register-settings.php:584
3737
  msgid "Default Button Color"
3738
  msgstr ""
3739
 
3740
+ #: includes/admin/settings/register-settings.php:585
3741
  msgid "Choose the color you want to use for the buttons."
3742
  msgstr ""
3743
 
3744
+ #: includes/admin/settings/register-settings.php:598
3745
  msgid "Need help?"
3746
  msgstr ""
3747
 
3748
+ #: includes/admin/settings/register-settings.php:599
3749
  msgid ""
3750
  "Visit the <a href=\"%s\" target=\"_blank\">Tax setup documentation</a> for "
3751
  "further information. If you need VAT support, there are options listed on "
3752
  "the documentation page."
3753
  msgstr ""
3754
 
3755
+ #: includes/admin/settings/register-settings.php:604
3756
  msgid "Enable Taxes"
3757
  msgstr ""
3758
 
3759
+ #: includes/admin/settings/register-settings.php:605
3760
  msgid "Check this to enable taxes on purchases."
3761
  msgstr ""
3762
 
3763
+ #: includes/admin/settings/register-settings.php:607
3764
  msgid "Enabling Taxes"
3765
  msgstr ""
3766
 
3767
+ #: includes/admin/settings/register-settings.php:608
3768
  msgid ""
3769
  "With taxes enabled, Easy Digital Downloads will use the rules below to "
3770
  "charge tax to customers. With taxes enabled, customers are required to "
3771
  "input their address on checkout so that taxes can be properly calculated."
3772
  msgstr ""
3773
 
3774
+ #: includes/admin/settings/register-settings.php:612
3775
  msgid "Tax Rates"
3776
  msgstr ""
3777
 
3778
+ #: includes/admin/settings/register-settings.php:613
3779
  msgid ""
3780
  "Add tax rates for specific regions. Enter a percentage, such as 6.5 for "
3781
  "6.5%."
3782
  msgstr ""
3783
 
3784
+ #: includes/admin/settings/register-settings.php:618
3785
+ #: includes/admin/settings/register-settings.php:622
3786
  msgid "Fallback Tax Rate"
3787
  msgstr ""
3788
 
3789
+ #: includes/admin/settings/register-settings.php:619
3790
  msgid ""
3791
  "Customers not in a specific rate will be charged this tax rate. Enter a "
3792
  "percentage, such as 6.5 for 6.5%. "
3793
  msgstr ""
3794
 
3795
+ #: includes/admin/settings/register-settings.php:623
3796
  msgid ""
3797
  "If the customer's address fails to meet the above tax rules, you can define "
3798
  "a `default` tax rate to be applied to all other customers. Enter a "
3799
  "percentage, such as 6.5 for 6.5%."
3800
  msgstr ""
3801
 
3802
+ #: includes/admin/settings/register-settings.php:627
3803
  msgid "Prices entered with tax"
3804
  msgstr ""
3805
 
3806
+ #: includes/admin/settings/register-settings.php:628
3807
  msgid "This option affects how you enter prices."
3808
  msgstr ""
3809
 
3810
+ #: includes/admin/settings/register-settings.php:632
3811
  msgid "Yes, I will enter prices inclusive of tax"
3812
  msgstr ""
3813
 
3814
+ #: includes/admin/settings/register-settings.php:633
3815
  msgid "No, I will enter prices exclusive of tax"
3816
  msgstr ""
3817
 
3818
+ #: includes/admin/settings/register-settings.php:635
3819
  msgid "Prices Inclusive of Tax"
3820
  msgstr ""
3821
 
3822
+ #: includes/admin/settings/register-settings.php:636
3823
  msgid ""
3824
  "When using prices inclusive of tax, you will be entering your prices as the "
3825
  "total amount you want a customer to pay for the download, including tax. "
3827
  "for the defined total price."
3828
  msgstr ""
3829
 
3830
+ #: includes/admin/settings/register-settings.php:640
3831
  msgid "Display Tax Rate on Prices"
3832
  msgstr ""
3833
 
3834
+ #: includes/admin/settings/register-settings.php:641
3835
  msgid "Some countries require a notice when product prices include tax."
3836
  msgstr ""
3837
 
3838
+ #: includes/admin/settings/register-settings.php:646
3839
  msgid "Display during checkout"
3840
  msgstr ""
3841
 
3842
+ #: includes/admin/settings/register-settings.php:647
3843
  msgid "Should prices on the checkout page be shown with or without tax?"
3844
  msgstr ""
3845
 
3846
+ #: includes/admin/settings/register-settings.php:651
3847
  msgid "Including tax"
3848
  msgstr ""
3849
 
3850
+ #: includes/admin/settings/register-settings.php:652
3851
  msgid "Excluding tax"
3852
  msgstr ""
3853
 
3854
+ #: includes/admin/settings/register-settings.php:654
3855
  msgid "Taxes Displayed for Products on Checkout"
3856
  msgstr ""
3857
 
3858
+ #: includes/admin/settings/register-settings.php:655
3859
  msgid ""
3860
  "This option will determine whether the product price displays with or "
3861
  "without tax on checkout."
3862
  msgstr ""
3863
 
 
3864
  #: includes/admin/settings/register-settings.php:673
3865
+ #: includes/admin/settings/register-settings.php:676
3866
  msgid "Redirect to Checkout"
3867
  msgstr ""
3868
 
3869
+ #: includes/admin/settings/register-settings.php:674
3870
  msgid "Immediately redirect to checkout after adding an item to the cart?"
3871
  msgstr ""
3872
 
3873
+ #: includes/admin/settings/register-settings.php:677
3874
  msgid ""
3875
  "When enabled, once an item has been added to the cart, the customer will be "
3876
  "redirected directly to your checkout page. This is useful for stores that "
3877
  "sell single items."
3878
  msgstr ""
3879
 
3880
+ #: includes/admin/settings/register-settings.php:681
3881
  msgid "Cart Item Quantities"
3882
  msgstr ""
3883
 
3884
+ #: includes/admin/settings/register-settings.php:682
3885
  msgid ""
3886
  "Allow quantities to be adjusted when adding %s to the cart, and while "
3887
  "viewing the checkout cart."
3888
  msgstr ""
3889
 
3890
+ #: includes/admin/settings/register-settings.php:687
3891
  msgid "Debug Mode"
3892
  msgstr ""
3893
 
3894
+ #: includes/admin/settings/register-settings.php:688
3895
  msgid ""
3896
  "Check this box to enable debug mode. When enabled, debug messages will be "
3897
  "logged and shown in Downloads &rarr; Tools &rarr; Debug Log."
3898
  msgstr ""
3899
 
3900
+ #: includes/admin/settings/register-settings.php:693
3901
  msgid "Remove Data on Uninstall?"
3902
  msgstr ""
3903
 
3904
+ #: includes/admin/settings/register-settings.php:694
3905
  msgid ""
3906
  "Check this box if you would like EDD to completely remove all of its data "
3907
  "when the plugin is deleted."
3908
  msgstr ""
3909
 
3910
+ #: includes/admin/settings/register-settings.php:701
3911
  msgid "Enforce SSL on Checkout"
3912
  msgstr ""
3913
 
3914
+ #: includes/admin/settings/register-settings.php:702
3915
  msgid ""
3916
  "Check this to force users to be redirected to the secure checkout page. You "
3917
  "must have an SSL certificate installed to use this option."
3918
  msgstr ""
3919
 
 
3920
  #: includes/admin/settings/register-settings.php:707
3921
+ #: includes/admin/settings/register-settings.php:710
3922
  msgid "Require Login"
3923
  msgstr ""
3924
 
3925
+ #: includes/admin/settings/register-settings.php:708
3926
  msgid "Require that users be logged-in to purchase files."
3927
  msgstr ""
3928
 
3929
+ #: includes/admin/settings/register-settings.php:711
3930
  msgid ""
3931
  "You can require that customers create and login to user accounts prior to "
3932
  "purchasing from your store by enabling this option. When unchecked, users "
3933
  "can purchase without being logged in by using their name and email address."
3934
  msgstr ""
3935
 
3936
+ #: includes/admin/settings/register-settings.php:715
3937
  msgid "Show Register / Login Form?"
3938
  msgstr ""
3939
 
3940
+ #: includes/admin/settings/register-settings.php:716
3941
  msgid ""
3942
  "Display the registration and login forms on the checkout page for "
3943
  "non-logged-in users."
3944
  msgstr ""
3945
 
3946
+ #: includes/admin/settings/register-settings.php:720
3947
  msgid "Registration and Login Forms"
3948
  msgstr ""
3949
 
3950
+ #: includes/admin/settings/register-settings.php:721
3951
  msgid "Registration Form Only"
3952
  msgstr ""
3953
 
3954
+ #: includes/admin/settings/register-settings.php:722
3955
  msgid "Login Form Only"
3956
  msgstr ""
3957
 
3958
+ #: includes/admin/settings/register-settings.php:728
3959
  msgid "Multiple Discounts"
3960
  msgstr ""
3961
 
3962
+ #: includes/admin/settings/register-settings.php:729
3963
  msgid "Allow customers to use multiple discounts on the same purchase?"
3964
  msgstr ""
3965
 
3966
+ #: includes/admin/settings/register-settings.php:734
3967
  msgid "Enable Cart Saving"
3968
  msgstr ""
3969
 
3970
+ #: includes/admin/settings/register-settings.php:735
3971
  msgid "Check this to enable cart saving on the checkout."
3972
  msgstr ""
3973
 
3974
+ #: includes/admin/settings/register-settings.php:737
3975
  msgid "Cart Saving"
3976
  msgstr ""
3977
 
3978
+ #: includes/admin/settings/register-settings.php:738
3979
  msgid ""
3980
  "Cart saving allows shoppers to create a temporary link to their current "
3981
  "shopping cart so they can come back to it later, or share it with someone."
3982
  msgstr ""
3983
 
3984
+ #: includes/admin/settings/register-settings.php:744
3985
  msgid "Complete Purchase Text"
3986
  msgstr ""
3987
 
3988
+ #: includes/admin/settings/register-settings.php:745
3989
  msgid "The button label for completing a purchase."
3990
  msgstr ""
3991
 
3992
+ #: includes/admin/settings/register-settings.php:751
3993
  msgid "Complete Free Purchase Text"
3994
  msgstr ""
3995
 
3996
+ #: includes/admin/settings/register-settings.php:752
3997
  msgid "The button label for completing a free purchase."
3998
  msgstr ""
3999
 
4000
+ #: includes/admin/settings/register-settings.php:754
4001
  #: includes/checkout/template.php:987
4002
  msgid "Free Download"
4003
  msgstr ""
4004
 
4005
+ #: includes/admin/settings/register-settings.php:758
4006
  msgid "Add to Cart Text"
4007
  msgstr ""
4008
 
4009
+ #: includes/admin/settings/register-settings.php:759
4010
  msgid "Text shown on the Add to Cart Buttons."
4011
  msgstr ""
4012
 
4013
+ #: includes/admin/settings/register-settings.php:765
4014
  msgid "Checkout Button Text"
4015
  msgstr ""
4016
 
4017
+ #: includes/admin/settings/register-settings.php:766
4018
  msgid ""
4019
  "Text shown on the Add to Cart Button when the product is already in the "
4020
  "cart."
4021
  msgstr ""
4022
 
4023
+ #: includes/admin/settings/register-settings.php:772
4024
  msgid "Buy Now Text"
4025
  msgstr ""
4026
 
4027
+ #: includes/admin/settings/register-settings.php:773
4028
  msgid "Text shown on the Buy Now Buttons."
4029
  msgstr ""
4030
 
 
4031
  #: includes/admin/settings/register-settings.php:781
4032
+ #: includes/admin/settings/register-settings.php:784
4033
  msgid "Download Method"
4034
  msgstr ""
4035
 
4036
+ #: includes/admin/settings/register-settings.php:782
4037
  msgid "Select the file download method. Note, not all methods work on all servers."
4038
  msgstr ""
4039
 
4040
+ #: includes/admin/settings/register-settings.php:785
4041
  msgid ""
4042
  "Due to its consistency in multiple platforms and better file protection, "
4043
  "'forced' is the default method. Because Easy Digital Downloads uses PHP to "
4048
  "method can help resolve this."
4049
  msgstr ""
4050
 
4051
+ #: includes/admin/settings/register-settings.php:787
4052
  msgid "Forced"
4053
  msgstr ""
4054
 
4055
+ #: includes/admin/settings/register-settings.php:788
4056
  msgid "Redirect"
4057
  msgstr ""
4058
 
4059
+ #: includes/admin/settings/register-settings.php:793
4060
  msgid "Symlink File Downloads?"
4061
  msgstr ""
4062
 
4063
+ #: includes/admin/settings/register-settings.php:794
4064
  msgid ""
4065
  "Check this if you are delivering really large files or having problems with "
4066
  "file downloads completing."
4067
  msgstr ""
4068
 
4069
+ #: includes/admin/settings/register-settings.php:800
4070
  msgid ""
4071
  "The maximum number of times files can be downloaded for purchases. Can be "
4072
  "overwritten for each %s."
4073
  msgstr ""
4074
 
4075
+ #: includes/admin/settings/register-settings.php:803
4076
  msgid "File Download Limits"
4077
  msgstr ""
4078
 
4079
+ #: includes/admin/settings/register-settings.php:804
4080
  msgid ""
4081
  "Set the global default for the number of times a customer can download "
4082
  "items they purchase. Using a value of 0 is unlimited. This can be defined "
4084
  "individual purchase."
4085
  msgstr ""
4086
 
4087
+ #: includes/admin/settings/register-settings.php:808
4088
+ #: includes/admin/settings/register-settings.php:810
4089
  msgid "Download Link Expiration"
4090
  msgstr ""
4091
 
4092
+ #: includes/admin/settings/register-settings.php:809
4093
  msgid ""
4094
  "How long should download links be valid for? Default is 24 hours from the "
4095
  "time they are generated. Enter a time in hours."
4096
  msgstr ""
4097
 
4098
+ #: includes/admin/settings/register-settings.php:811
4099
  msgid ""
4100
  "When a customer receives a link to their downloads via email, in their "
4101
  "receipt, or in their purchase history, the link will only be valid for the "
4104
  "customer."
4105
  msgstr ""
4106
 
4107
+ #: includes/admin/settings/register-settings.php:819
4108
  msgid "Disable Redownload?"
4109
  msgstr ""
4110
 
4111
+ #: includes/admin/settings/register-settings.php:820
4112
  msgid ""
4113
  "Check this if you do not want to allow users to redownload items from their "
4114
  "purchase history."
4115
  msgstr ""
4116
 
4117
+ #: includes/admin/settings/register-settings.php:827
4118
  msgid "Enable SKU Entry"
4119
  msgstr ""
4120
 
4121
+ #: includes/admin/settings/register-settings.php:828
4122
  msgid ""
4123
  "Check this box to allow entry of product SKUs. SKUs will be shown on "
4124
  "purchase receipt and exported purchase histories."
4125
  msgstr ""
4126
 
4127
+ #: includes/admin/settings/register-settings.php:833
4128
  msgid "Sequential Order Numbers"
4129
  msgstr ""
4130
 
4131
+ #: includes/admin/settings/register-settings.php:834
4132
  msgid "Check this box to enable sequential order numbers."
4133
  msgstr ""
4134
 
4135
+ #: includes/admin/settings/register-settings.php:839
4136
  msgid "Sequential Starting Number"
4137
  msgstr ""
4138
 
4139
+ #: includes/admin/settings/register-settings.php:840
4140
  msgid "The number at which the sequence should begin."
4141
  msgstr ""
4142
 
4143
+ #: includes/admin/settings/register-settings.php:847
4144
  msgid "Sequential Number Prefix"
4145
  msgstr ""
4146
 
4147
+ #: includes/admin/settings/register-settings.php:848
4148
  msgid "A prefix to prepend to all sequential order numbers."
4149
  msgstr ""
4150
 
4151
+ #: includes/admin/settings/register-settings.php:853
4152
  msgid "Sequential Number Postfix"
4153
  msgstr ""
4154
 
4155
+ #: includes/admin/settings/register-settings.php:854
4156
  msgid "A postfix to append to all sequential order numbers."
4157
  msgstr ""
4158
 
4159
+ #: includes/admin/settings/register-settings.php:861
4160
  msgid "Agree to Terms"
4161
  msgstr ""
4162
 
4163
+ #: includes/admin/settings/register-settings.php:862
4164
  msgid ""
4165
  "Check this to show an agree to terms on checkout that users must agree to "
4166
  "before purchasing."
4167
  msgstr ""
4168
 
4169
+ #: includes/admin/settings/register-settings.php:867
4170
  msgid "Agree to Terms Label"
4171
  msgstr ""
4172
 
4173
+ #: includes/admin/settings/register-settings.php:868
4174
  msgid "Label shown next to the agree to terms checkbox."
4175
  msgstr ""
4176
 
4177
+ #: includes/admin/settings/register-settings.php:874
4178
  msgid "Agreement Text"
4179
  msgstr ""
4180
 
4181
+ #: includes/admin/settings/register-settings.php:875
4182
  msgid "If Agree to Terms is checked, enter the agreement terms here."
4183
  msgstr ""
4184
 
4185
+ #: includes/admin/settings/register-settings.php:886
4186
  msgid "Agree to Privacy Policy"
4187
  msgstr ""
4188
 
4189
+ #: includes/admin/settings/register-settings.php:887
4190
  msgid ""
4191
  "Check this to show an agree to Privacy Policy on checkout that users must "
4192
  "agree to before purchasing."
4193
  msgstr ""
4194
 
4195
+ #: includes/admin/settings/register-settings.php:892
4196
  msgid "Agree to Privacy Policy Label"
4197
  msgstr ""
4198
 
4199
+ #: includes/admin/settings/register-settings.php:893
4200
  msgid "Label shown next to the agree to Privacy Policy checkbox."
4201
  msgstr ""
4202
 
4203
+ #: includes/admin/settings/register-settings.php:899
4204
  msgid "Show the Privacy Policy on checkout"
4205
  msgstr ""
4206
 
4207
+ #: includes/admin/settings/register-settings.php:900
4208
  msgid "Display your Privacy Policy on checkout."
4209
  msgstr ""
4210
 
4211
+ #: includes/admin/settings/register-settings.php:900
4212
  msgid "Set your Privacy Policy here"
4213
  msgstr ""
4214
 
4215
+ #: includes/admin/settings/register-settings.php:913
4216
  msgid "Payment Status Actions"
4217
  msgstr ""
4218
 
4219
+ #: includes/admin/settings/register-settings.php:915
4220
  msgid ""
4221
  "When a user requests to be anonymized or removed from a site, these are the "
4222
  "actions that will be taken on payments associated with their customer, by "
4223
  "status."
4224
  msgstr ""
4225
 
4226
+ #: includes/admin/settings/register-settings.php:916
4227
  msgid "What settings should I use?"
4228
  msgstr ""
4229
 
4230
+ #: includes/admin/settings/register-settings.php:917
4231
  msgid ""
4232
  "By default, Easy Digital Downloads sets suggested actions based on the "
4233
  "Payment Status. These are purely recommendations, and you may need to "
4235
  "leave these settings as is."
4236
  msgstr ""
4237
 
4238
+ #: includes/admin/settings/register-settings.php:928
4239
  msgid "No Action"
4240
  msgstr ""
4241
 
4242
+ #: includes/admin/settings/register-settings.php:929
4243
  msgid "Anonymize"
4244
  msgstr ""
4245
 
4246
+ #: includes/admin/settings/register-settings.php:969
4247
  msgid "Buy Now Disabled"
4248
  msgstr ""
4249
 
4250
+ #: includes/admin/settings/register-settings.php:970
4251
  msgid ""
4252
  "Buy Now buttons are only available for stores that have a single supported "
4253
  "gateway active and that do not use taxes."
4254
  msgstr ""
4255
 
4256
+ #: includes/admin/settings/register-settings.php:1073
4257
  msgid "Settings updated."
4258
  msgstr ""
4259
 
4260
+ #: includes/admin/settings/register-settings.php:1226
4261
  msgid "Error setting default gateway. No gateways are enabled."
4262
  msgstr ""
4263
 
4264
+ #: includes/admin/settings/register-settings.php:1239
4265
  msgid "%s could not be set as the default gateway. It must first be enabled."
4266
  msgstr ""
4267
 
4268
+ #: includes/admin/settings/register-settings.php:1338
4269
  msgid "Privacy"
4270
  msgstr ""
4271
 
4272
+ #: includes/admin/settings/register-settings.php:1344
4273
  msgid "Licenses"
4274
  msgstr ""
4275
 
4276
+ #: includes/admin/settings/register-settings.php:1347
4277
  msgid "Misc"
4278
  msgstr ""
4279
 
4280
+ #: includes/admin/settings/register-settings.php:1395
4281
  #: includes/gateways/functions.php:25 includes/gateways/paypal-standard.php:33
4282
  msgid "PayPal Standard"
4283
  msgstr ""
4284
 
4285
+ #: includes/admin/settings/register-settings.php:1399
4286
  msgid "Purchase Receipts"
4287
  msgstr ""
4288
 
4289
+ #: includes/admin/settings/register-settings.php:1400
4290
  msgid "New Sale Notifications"
4291
  msgstr ""
4292
 
4293
+ #: includes/admin/settings/register-settings.php:1409
4294
  msgid "Main"
4295
  msgstr ""
4296
 
4297
+ #: includes/admin/settings/register-settings.php:1414 includes/install.php:92
4298
  #: templates/widget-cart-checkout.php:6 templates/widget-cart-empty.php:7
4299
  msgid "Checkout"
4300
  msgstr ""
4301
 
4302
+ #: includes/admin/settings/register-settings.php:1415
4303
  msgid "Button Text"
4304
  msgstr ""
4305
 
4306
+ #: includes/admin/settings/register-settings.php:1417
4307
  msgid "Accounting"
4308
  msgstr ""
4309
 
4310
+ #: includes/admin/settings/register-settings.php:1418
4311
  msgid "Terms of Agreement"
4312
  msgstr ""
4313
 
4314
+ #: includes/admin/settings/register-settings.php:1422
4315
  msgid "Export & Erase"
4316
  msgstr ""
4317
 
4318
+ #: includes/admin/settings/register-settings.php:1664
4319
  msgid ""
4320
  "Don't see what you need? More Payment Gateway options are available <a "
4321
  "href=\"%s\">here</a>."
4322
  msgstr ""
4323
 
4324
+ #: includes/admin/settings/register-settings.php:1885
4325
  msgid "The callback function used for the %s setting is missing."
4326
  msgstr ""
4327
 
4328
+ #: includes/admin/settings/register-settings.php:2047
4329
  msgid "Upload File"
4330
  msgstr ""
4331
 
4332
+ #: includes/admin/settings/register-settings.php:2147
4333
  msgid "Country Wide"
4334
  msgstr ""
4335
 
4336
+ #: includes/admin/settings/register-settings.php:2148
4337
  msgid "Rate"
4338
  msgstr ""
4339
 
4340
+ #: includes/admin/settings/register-settings.php:2148
4341
  msgid ""
4342
  "<strong>Regional tax rates: </strong>When a customer enters an address on "
4343
  "checkout that matches the specified region for this tax rate, the cart tax "
4344
  "will adjust automatically. Enter a percentage, such as 6.5 for 6.5%."
4345
  msgstr ""
4346
 
4347
+ #: includes/admin/settings/register-settings.php:2165
4348
+ #: includes/admin/settings/register-settings.php:2213
4349
  msgid "Choose a country"
4350
  msgstr ""
4351
 
4352
+ #: includes/admin/settings/register-settings.php:2183
4353
  msgid "Choose a state"
4354
  msgstr ""
4355
 
4356
+ #: includes/admin/settings/register-settings.php:2195
4357
+ #: includes/admin/settings/register-settings.php:2226
4358
  msgid "Apply to whole country"
4359
  msgstr ""
4360
 
4361
+ #: includes/admin/settings/register-settings.php:2198
4362
+ #: includes/admin/settings/register-settings.php:2229
4363
  msgid "Remove Rate"
4364
  msgstr ""
4365
 
4366
+ #: includes/admin/settings/register-settings.php:2234
4367
  msgid "Add Tax Rate"
4368
  msgstr ""
4369
 
4370
+ #: includes/admin/settings/register-settings.php:2287
4371
  msgid ""
4372
  "Your license key expired on %s. Please <a href=\"%s\" "
4373
  "target=\"_blank\">renew your license key</a>."
4374
  msgstr ""
4375
 
4376
+ #: includes/admin/settings/register-settings.php:2300
4377
  msgid ""
4378
  "Your license key has been disabled. Please <a href=\"%s\" "
4379
  "target=\"_blank\">contact support</a> for more information."
4380
  msgstr ""
4381
 
4382
+ #: includes/admin/settings/register-settings.php:2312
4383
  msgid ""
4384
  "Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
4385
  "page</a> and verify it."
4386
  msgstr ""
4387
 
4388
+ #: includes/admin/settings/register-settings.php:2325
4389
  msgid ""
4390
  "Your %s is not active for this URL. Please <a href=\"%s\" "
4391
  "target=\"_blank\">visit your account page</a> to manage your license key "
4392
  "URLs."
4393
  msgstr ""
4394
 
4395
+ #: includes/admin/settings/register-settings.php:2337
4396
  msgid "This appears to be an invalid license key for %s."
4397
  msgstr ""
4398
 
4399
+ #: includes/admin/settings/register-settings.php:2346
4400
  msgid ""
4401
  "Your license key has reached its activation limit. <a href=\"%s\">View "
4402
  "possible upgrades</a> now."
4403
  msgstr ""
4404
 
4405
+ #: includes/admin/settings/register-settings.php:2355
4406
  msgid ""
4407
  "The key you entered belongs to a bundle, please use the product specific "
4408
  "license key."
4409
  msgstr ""
4410
 
4411
+ #: includes/admin/settings/register-settings.php:2363
4412
  msgid "unknown_error"
4413
  msgstr ""
4414
 
4415
+ #: includes/admin/settings/register-settings.php:2364
4416
  msgid ""
4417
  "There was an error with this license key: %s. Please <a href=\"%s\">contact "
4418
  "our support team</a>."
4419
  msgstr ""
4420
 
4421
+ #: includes/admin/settings/register-settings.php:2384
4422
  msgid "License key never expires."
4423
  msgstr ""
4424
 
4425
+ #: includes/admin/settings/register-settings.php:2391
4426
  msgid ""
4427
  "Your license key expires soon! It expires on %s. <a href=\"%s\" "
4428
  "target=\"_blank\">Renew your license key</a>."
4429
  msgstr ""
4430
 
4431
+ #: includes/admin/settings/register-settings.php:2401
4432
  msgid "Your license key expires on %s."
4433
  msgstr ""
4434
 
4435
+ #: includes/admin/settings/register-settings.php:2419
4436
  msgid "To receive updates, please enter your valid %s license key."
4437
  msgstr ""
4438
 
4439
+ #: includes/admin/settings/register-settings.php:2432
4440
  msgid "Deactivate License"
4441
  msgstr ""
4442
 
4901
  msgid "Do not allow"
4902
  msgstr ""
4903
 
4904
+ #: includes/admin/upgrades/classes/class-file-download-log-migration.php:135
4905
  msgid "You do not have permission to run this upgrade."
4906
  msgstr ""
4907
 
4908
+ #: includes/admin/upgrades/classes/class-file-download-log-migration.php:149
4909
  msgid "File download logs updated successfully."
4910
  msgstr ""
4911
 
8452
  msgid "to"
8453
  msgstr ""
8454
 
8455
+ #: includes/admin/settings/register-settings.php:768
8456
  #: includes/template-functions.php:79
8457
  msgctxt "text shown on the Add to Cart Button when the product is already in the cart"
8458
  msgid "Checkout"
8459
  msgstr ""
8460
 
8461
+ #: includes/admin/settings/register-settings.php:958
8462
  msgctxt ""
8463
  "payment status labels for the privacy export & erase settings: Pending "
8464
  "Payments"
readme.txt CHANGED
@@ -6,7 +6,7 @@ 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: 4.9.7
9
- Stable Tag: 2.9.4
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
@@ -190,6 +190,10 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
190
 
191
  == Changelog ==
192
 
 
 
 
 
193
  = 2.9.4, July 9, 2018 =
194
  * Fix: Added nonce checks to multiple AJAX calls. If you have customized any of the following beyond CSS, please review this blog post:
195
  * https://easydigitaldownloads.com/development/2018/07/05/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4
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: 4.9.7
9
+ Stable Tag: 2.9.5
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
190
 
191
  == Changelog ==
192
 
193
+ = 2.9.5, July 12, 2018 =
194
+ * Fix: Changing the country field in the admin would not display the State fields.
195
+ * Fix: File Download Log Migration from version 2.9.2 would fail on some sites.
196
+
197
  = 2.9.4, July 9, 2018 =
198
  * Fix: Added nonce checks to multiple AJAX calls. If you have customized any of the following beyond CSS, please review this blog post:
199
  * https://easydigitaldownloads.com/development/2018/07/05/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4