Version Description
Download this release
Release Info
Developer | cklosows |
Plugin | Easy Digital Downloads |
Version | 2.9.13 |
Comparing to | |
See all releases |
Code changes from version 2.9.12 to 2.9.13
- assets/js/admin-scripts.js +14 -2
- assets/js/admin-scripts.min.js +1 -1
- easy-digital-downloads.php +3 -3
- includes/EDD_SL_Plugin_Updater.php +25 -4
- includes/admin/customers/class-customer-table.php +2 -2
- includes/admin/payments/view-order-details.php +39 -6
- includes/api/class-edd-api-v2.php +1 -1
- includes/class-edd-license-handler.php +12 -0
- includes/download-functions.php +2 -3
- includes/gateways/manual.php +9 -9
- includes/install.php +15 -15
- includes/process-download.php +35 -0
- includes/scripts.php +2 -1
- languages/easy-digital-downloads.pot +95 -79
- readme.txt +12 -2
assets/js/admin-scripts.js
CHANGED
@@ -587,8 +587,14 @@ jQuery(document).ready(function ($) {
|
|
587 |
download_title = download_title + ' - ' + price_name;
|
588 |
}
|
589 |
|
590 |
-
var count = $('#edd-purchased-files div.row').length;
|
591 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
|
593 |
clone.find( '.download span' ).html( '<a href="post.php?post=' + download_id + '&action=edit"></a>' );
|
594 |
clone.find( '.download span a' ).text( download_title );
|
@@ -620,7 +626,13 @@ jQuery(document).ready(function ($) {
|
|
620 |
// Flag the Downloads section as changed
|
621 |
$('#edd-payment-downloads-changed').val(1);
|
622 |
|
|
|
|
|
|
|
|
|
|
|
623 |
$(clone).insertAfter( '#edd-purchased-files div.row:last' );
|
|
|
624 |
$( '.edd-order-payment-recalc-totals' ).show();
|
625 |
$( '.edd-add-download-field' ).val('');
|
626 |
});
|
587 |
download_title = download_title + ' - ' + price_name;
|
588 |
}
|
589 |
|
590 |
+
var count = $('#edd-purchased-files div.row:not(.edd-purchased-files-header)').length;
|
591 |
+
|
592 |
+
// If there are no rows in the list of cart items
|
593 |
+
if ( 0 == count ) {
|
594 |
+
alert( edd_vars.no_downloads_error );
|
595 |
+
}
|
596 |
+
|
597 |
+
var clone = $('#edd-purchased-files div.row:not(.edd-purchased-files-header):last').clone();
|
598 |
|
599 |
clone.find( '.download span' ).html( '<a href="post.php?post=' + download_id + '&action=edit"></a>' );
|
600 |
clone.find( '.download span a' ).text( download_title );
|
626 |
// Flag the Downloads section as changed
|
627 |
$('#edd-payment-downloads-changed').val(1);
|
628 |
|
629 |
+
|
630 |
+
if( $('#edd-purchased-files div.row .edd-purchased-download-title .deleted' ).length ) {
|
631 |
+
$('#edd-purchased-files div.row:last').remove();
|
632 |
+
}
|
633 |
+
|
634 |
$(clone).insertAfter( '#edd-purchased-files div.row:last' );
|
635 |
+
|
636 |
$( '.edd-order-payment-recalc-totals' ).show();
|
637 |
$( '.edd-add-download-field' ).val('');
|
638 |
});
|
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 $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}})}
|
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:not(.edd-purchased-files-header)").length;0==count&&alert(edd_vars.no_downloads_error);var clone=$("#edd-purchased-files div.row:not(.edd-purchased-files-header):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),$("#edd-purchased-files div.row .edd-purchased-download-title .deleted").length&&$("#edd-purchased-files div.row:last").remove(),$(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.
|
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.
|
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.
|
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.13
|
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.13
|
29 |
*/
|
30 |
|
31 |
// Exit if accessed directly.
|
206 |
|
207 |
// Plugin version.
|
208 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
209 |
+
define( 'EDD_VERSION', '2.9.13' );
|
210 |
}
|
211 |
|
212 |
// Plugin Folder Path.
|
includes/EDD_SL_Plugin_Updater.php
CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
7 |
* Allows plugins to use their own update API.
|
8 |
*
|
9 |
* @author Easy Digital Downloads
|
10 |
-
* @version 1.6.
|
11 |
*/
|
12 |
class EDD_SL_Plugin_Updater {
|
13 |
|
@@ -121,6 +121,9 @@ class EDD_SL_Plugin_Updater {
|
|
121 |
|
122 |
$_transient_data->response[ $this->name ] = $version_info;
|
123 |
|
|
|
|
|
|
|
124 |
}
|
125 |
|
126 |
$_transient_data->last_checked = time();
|
@@ -182,6 +185,14 @@ class EDD_SL_Plugin_Updater {
|
|
182 |
$version_info->icons = $this->convert_object_to_array( $version_info->icons );
|
183 |
}
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
$this->set_version_info_cache( $version_info );
|
186 |
}
|
187 |
|
@@ -316,6 +327,15 @@ class EDD_SL_Plugin_Updater {
|
|
316 |
$_data->icons = $this->convert_object_to_array( $_data->icons );
|
317 |
}
|
318 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
return $_data;
|
320 |
}
|
321 |
|
@@ -334,7 +354,7 @@ class EDD_SL_Plugin_Updater {
|
|
334 |
private function convert_object_to_array( $data ) {
|
335 |
$new_data = array();
|
336 |
foreach ( $data as $key => $value ) {
|
337 |
-
$new_data[ $key ] = $value;
|
338 |
}
|
339 |
|
340 |
return $new_data;
|
@@ -372,6 +392,8 @@ class EDD_SL_Plugin_Updater {
|
|
372 |
|
373 |
global $wp_version, $edd_plugin_url_available;
|
374 |
|
|
|
|
|
375 |
// Do a quick status check on this domain if we haven't already checked it.
|
376 |
$store_hash = md5( $this->api_url );
|
377 |
if ( ! is_array( $edd_plugin_url_available ) || ! isset( $edd_plugin_url_available[ $store_hash ] ) ) {
|
@@ -385,7 +407,7 @@ class EDD_SL_Plugin_Updater {
|
|
385 |
$edd_plugin_url_available[ $store_hash ] = false;
|
386 |
} else {
|
387 |
$test_url = $scheme . '://' . $host . $port;
|
388 |
-
$response = wp_remote_get( $test_url, array( 'timeout' => $this->health_check_timeout, 'sslverify' =>
|
389 |
$edd_plugin_url_available[ $store_hash ] = is_wp_error( $response ) ? false : true;
|
390 |
}
|
391 |
}
|
@@ -416,7 +438,6 @@ class EDD_SL_Plugin_Updater {
|
|
416 |
'beta' => ! empty( $data['beta'] ),
|
417 |
);
|
418 |
|
419 |
-
$verify_ssl = $this->verify_ssl();
|
420 |
$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
|
421 |
|
422 |
if ( ! is_wp_error( $request ) ) {
|
7 |
* Allows plugins to use their own update API.
|
8 |
*
|
9 |
* @author Easy Digital Downloads
|
10 |
+
* @version 1.6.19
|
11 |
*/
|
12 |
class EDD_SL_Plugin_Updater {
|
13 |
|
121 |
|
122 |
$_transient_data->response[ $this->name ] = $version_info;
|
123 |
|
124 |
+
// Make sure the plugin property is set to the plugin's name/location. See issue 1463 on Software Licensing's GitHub repo.
|
125 |
+
$_transient_data->response[ $this->name ]->plugin = $this->name;
|
126 |
+
|
127 |
}
|
128 |
|
129 |
$_transient_data->last_checked = time();
|
185 |
$version_info->icons = $this->convert_object_to_array( $version_info->icons );
|
186 |
}
|
187 |
|
188 |
+
if ( isset( $version_info->icons ) && ! is_array( $version_info->icons ) ) {
|
189 |
+
$version_info->icons = $this->convert_object_to_array( $version_info->icons );
|
190 |
+
}
|
191 |
+
|
192 |
+
if ( isset( $version_info->contributors ) && ! is_array( $version_info->contributors ) ) {
|
193 |
+
$version_info->contributors = $this->convert_object_to_array( $version_info->contributors );
|
194 |
+
}
|
195 |
+
|
196 |
$this->set_version_info_cache( $version_info );
|
197 |
}
|
198 |
|
327 |
$_data->icons = $this->convert_object_to_array( $_data->icons );
|
328 |
}
|
329 |
|
330 |
+
// Convert contributors into an associative array, since we're getting an object, but Core expects an array.
|
331 |
+
if ( isset( $_data->contributors ) && ! is_array( $_data->contributors ) ) {
|
332 |
+
$_data->contributors = $this->convert_object_to_array( $_data->contributors );
|
333 |
+
}
|
334 |
+
|
335 |
+
if( ! isset( $_data->plugin ) ) {
|
336 |
+
$_data->plugin = $this->name;
|
337 |
+
}
|
338 |
+
|
339 |
return $_data;
|
340 |
}
|
341 |
|
354 |
private function convert_object_to_array( $data ) {
|
355 |
$new_data = array();
|
356 |
foreach ( $data as $key => $value ) {
|
357 |
+
$new_data[ $key ] = is_object( $value ) ? $this->convert_object_to_array( $value ) : $value;
|
358 |
}
|
359 |
|
360 |
return $new_data;
|
392 |
|
393 |
global $wp_version, $edd_plugin_url_available;
|
394 |
|
395 |
+
$verify_ssl = $this->verify_ssl();
|
396 |
+
|
397 |
// Do a quick status check on this domain if we haven't already checked it.
|
398 |
$store_hash = md5( $this->api_url );
|
399 |
if ( ! is_array( $edd_plugin_url_available ) || ! isset( $edd_plugin_url_available[ $store_hash ] ) ) {
|
407 |
$edd_plugin_url_available[ $store_hash ] = false;
|
408 |
} else {
|
409 |
$test_url = $scheme . '://' . $host . $port;
|
410 |
+
$response = wp_remote_get( $test_url, array( 'timeout' => $this->health_check_timeout, 'sslverify' => $verify_ssl ) );
|
411 |
$edd_plugin_url_available[ $store_hash ] = is_wp_error( $response ) ? false : true;
|
412 |
}
|
413 |
}
|
438 |
'beta' => ! empty( $data['beta'] ),
|
439 |
);
|
440 |
|
|
|
441 |
$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
|
442 |
|
443 |
if ( ! is_wp_error( $request ) ) {
|
includes/admin/customers/class-customer-table.php
CHANGED
@@ -152,14 +152,14 @@ class EDD_Customer_Reports_Table extends WP_List_Table {
|
|
152 |
$name = '#' . $item['id'] . ' ';
|
153 |
$name .= ! empty( $item['name'] ) ? $item['name'] : '<em>' . __( 'Unnamed Customer','easy-digital-downloads' ) . '</em>';
|
154 |
$user = ! empty( $item['user_id'] ) ? $item['user_id'] : $item['email'];
|
|
|
155 |
$view_url = admin_url( 'edit.php?post_type=download&page=edd-customers&view=overview&id=' . $item['id'] );
|
156 |
$actions = array(
|
157 |
'view' => '<a href="' . $view_url . '">' . __( 'View', 'easy-digital-downloads' ) . '</a>',
|
158 |
-
'logs' => '<a href="' . admin_url( 'edit.php?post_type=download&page=edd-reports&tab=logs&
|
159 |
'delete' => '<a href="' . admin_url( 'edit.php?post_type=download&page=edd-customers&view=delete&id=' . $item['id'] ) . '">' . __( 'Delete', 'easy-digital-downloads' ) . '</a>'
|
160 |
);
|
161 |
|
162 |
-
$customer = new EDD_Customer( $item['id'] );
|
163 |
$pending = edd_user_pending_verification( $customer->user_id ) ? ' <em>' . __( '(Pending Verification)', 'easy-digital-downloads' ) . '</em>' : '';
|
164 |
|
165 |
return '<a href="' . esc_url( $view_url ) . '">' . $name . '</a>' . $pending . $this->row_actions( $actions );
|
152 |
$name = '#' . $item['id'] . ' ';
|
153 |
$name .= ! empty( $item['name'] ) ? $item['name'] : '<em>' . __( 'Unnamed Customer','easy-digital-downloads' ) . '</em>';
|
154 |
$user = ! empty( $item['user_id'] ) ? $item['user_id'] : $item['email'];
|
155 |
+
$customer = new EDD_Customer( $item['id'] );
|
156 |
$view_url = admin_url( 'edit.php?post_type=download&page=edd-customers&view=overview&id=' . $item['id'] );
|
157 |
$actions = array(
|
158 |
'view' => '<a href="' . $view_url . '">' . __( 'View', 'easy-digital-downloads' ) . '</a>',
|
159 |
+
'logs' => '<a href="' . admin_url( 'edit.php?post_type=download&page=edd-reports&tab=logs&customer=' . $customer->id ) . '">' . __( 'Download log', 'easy-digital-downloads' ) . '</a>',
|
160 |
'delete' => '<a href="' . admin_url( 'edit.php?post_type=download&page=edd-customers&view=delete&id=' . $item['id'] ) . '">' . __( 'Delete', 'easy-digital-downloads' ) . '</a>'
|
161 |
);
|
162 |
|
|
|
163 |
$pending = edd_user_pending_verification( $customer->user_id ) ? ' <em>' . __( '(Pending Verification)', 'easy-digital-downloads' ) . '</em>' : '';
|
164 |
|
165 |
return '<a href="' . esc_url( $view_url ) . '">' . $name . '</a>' . $pending . $this->row_actions( $actions );
|
includes/admin/payments/view-order-details.php
CHANGED
@@ -316,7 +316,7 @@ $customer = new EDD_Customer( $payment->customer_id );
|
|
316 |
<a href="<?php echo admin_url( '/edit.php?post_type=download&page=edd-reports&tab=logs&payment=' . $payment_id ); ?>"><?php _e( 'View file download log for purchase', 'easy-digital-downloads' ); ?></a>
|
317 |
</p>
|
318 |
<p>
|
319 |
-
<?php $download_log_url = admin_url( 'edit.php?post_type=download&page=edd-reports&tab=logs&
|
320 |
<a href="<?php echo $download_log_url; ?>"><?php _e( 'View customer download log', 'easy-digital-downloads' ); ?></a>
|
321 |
</p>
|
322 |
<p>
|
@@ -345,7 +345,38 @@ $customer = new EDD_Customer( $payment->customer_id );
|
|
345 |
|
346 |
<?php $column_count = edd_use_taxes() ? 'columns-5' : 'columns-4'; ?>
|
347 |
|
348 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
$is_qty_enabled = edd_item_quantities_enabled() ? ' item_quantity' : '' ;
|
350 |
?>
|
351 |
<div id="edd-purchased-files" class="postbox edd-edit-purchase-element <?php echo $column_count; ?>">
|
@@ -417,12 +448,14 @@ $customer = new EDD_Customer( $payment->customer_id );
|
|
417 |
</a>
|
418 |
<?php else: ?>
|
419 |
<span class="deleted">
|
420 |
-
<?php if ( !
|
421 |
-
|
|
|
|
|
422 |
<em>(<?php _e( 'Deleted', 'easy-digital-downloads' ); ?>)</em>
|
423 |
-
<?php else
|
424 |
<em><?php printf( __( '%s deleted', 'easy-digital-downloads' ), edd_get_label_singular() ); ?></em>
|
425 |
-
<?php
|
426 |
</span>
|
427 |
<?php endif; ?>
|
428 |
</span>
|
316 |
<a href="<?php echo admin_url( '/edit.php?post_type=download&page=edd-reports&tab=logs&payment=' . $payment_id ); ?>"><?php _e( 'View file download log for purchase', 'easy-digital-downloads' ); ?></a>
|
317 |
</p>
|
318 |
<p>
|
319 |
+
<?php $download_log_url = admin_url( 'edit.php?post_type=download&page=edd-reports&tab=logs&customer=' . $customer->id ); ?>
|
320 |
<a href="<?php echo $download_log_url; ?>"><?php _e( 'View customer download log', 'easy-digital-downloads' ); ?></a>
|
321 |
</p>
|
322 |
<p>
|
345 |
|
346 |
<?php $column_count = edd_use_taxes() ? 'columns-5' : 'columns-4'; ?>
|
347 |
|
348 |
+
<?php
|
349 |
+
|
350 |
+
// If there are no cart items, add a paceholder product so that it can be duplicated through JS, which is how proeucts are added to orders.
|
351 |
+
if ( empty( $cart_items ) ) {
|
352 |
+
$cart_items = array(
|
353 |
+
array(
|
354 |
+
'name' => __( 'No download attached to this order', 'easy-digital-downloads' ),
|
355 |
+
'id' => 0,
|
356 |
+
'item_number' => array(
|
357 |
+
'id' => 0,
|
358 |
+
'quantity' => 0,
|
359 |
+
'options' => array(
|
360 |
+
'quantity' => 0,
|
361 |
+
'price_id' => 0,
|
362 |
+
)
|
363 |
+
),
|
364 |
+
'item_price' => 0,
|
365 |
+
'quantity' => 0,
|
366 |
+
'discount' => 0,
|
367 |
+
'subtotal' => 0,
|
368 |
+
'tax' => 0,
|
369 |
+
'fees' => array(),
|
370 |
+
'price' => 0
|
371 |
+
)
|
372 |
+
);
|
373 |
+
|
374 |
+
$cart_items_existed = false;
|
375 |
+
} else {
|
376 |
+
$cart_items_existed = true;
|
377 |
+
}
|
378 |
+
|
379 |
+
if ( is_array( $cart_items ) ) :
|
380 |
$is_qty_enabled = edd_item_quantities_enabled() ? ' item_quantity' : '' ;
|
381 |
?>
|
382 |
<div id="edd-purchased-files" class="postbox edd-edit-purchase-element <?php echo $column_count; ?>">
|
448 |
</a>
|
449 |
<?php else: ?>
|
450 |
<span class="deleted">
|
451 |
+
<?php if ( ! $cart_items_existed ) {
|
452 |
+
echo $cart_item['name'];
|
453 |
+
} else if ( ! empty( $cart_item['name'] ) ) {
|
454 |
+
echo $cart_item['name']; ?> -
|
455 |
<em>(<?php _e( 'Deleted', 'easy-digital-downloads' ); ?>)</em>
|
456 |
+
<?php } else { ?>
|
457 |
<em><?php printf( __( '%s deleted', 'easy-digital-downloads' ), edd_get_label_singular() ); ?></em>
|
458 |
+
<?php } ?>
|
459 |
</span>
|
460 |
<?php endif; ?>
|
461 |
</span>
|
includes/api/class-edd-api-v2.php
CHANGED
@@ -73,7 +73,7 @@ class EDD_API_V2 extends EDD_API_V1 {
|
|
73 |
}
|
74 |
|
75 |
if( ! empty( $args['category'] ) ) {
|
76 |
-
if (
|
77 |
$args['category'] = explode( ',', $args['category'] );
|
78 |
}
|
79 |
|
73 |
}
|
74 |
|
75 |
if( ! empty( $args['category'] ) ) {
|
76 |
+
if ( is_string( $args[ 'categrory' ] ) ) {
|
77 |
$args['category'] = explode( ',', $args['category'] );
|
78 |
}
|
79 |
|
includes/class-edd-license-handler.php
CHANGED
@@ -261,6 +261,10 @@ class EDD_License {
|
|
261 |
'url' => home_url()
|
262 |
);
|
263 |
|
|
|
|
|
|
|
|
|
264 |
// Call the API
|
265 |
$response = wp_remote_post(
|
266 |
$this->api_url,
|
@@ -321,6 +325,10 @@ class EDD_License {
|
|
321 |
'url' => home_url()
|
322 |
);
|
323 |
|
|
|
|
|
|
|
|
|
324 |
// Call the API
|
325 |
$response = wp_remote_post(
|
326 |
$this->api_url,
|
@@ -369,6 +377,10 @@ class EDD_License {
|
|
369 |
'url' => home_url()
|
370 |
);
|
371 |
|
|
|
|
|
|
|
|
|
372 |
// Call the API
|
373 |
$response = wp_remote_post(
|
374 |
$this->api_url,
|
261 |
'url' => home_url()
|
262 |
);
|
263 |
|
264 |
+
if ( ! empty( $this->item_id ) ) {
|
265 |
+
$api_params['item_id'] = $this->item_id;
|
266 |
+
}
|
267 |
+
|
268 |
// Call the API
|
269 |
$response = wp_remote_post(
|
270 |
$this->api_url,
|
325 |
'url' => home_url()
|
326 |
);
|
327 |
|
328 |
+
if ( ! empty( $this->item_id ) ) {
|
329 |
+
$api_params['item_id'] = $this->item_id;
|
330 |
+
}
|
331 |
+
|
332 |
// Call the API
|
333 |
$response = wp_remote_post(
|
334 |
$this->api_url,
|
377 |
'url' => home_url()
|
378 |
);
|
379 |
|
380 |
+
if ( ! empty( $this->item_id ) ) {
|
381 |
+
$api_params['item_id'] = $this->item_id;
|
382 |
+
}
|
383 |
+
|
384 |
// Call the API
|
385 |
$response = wp_remote_post(
|
386 |
$this->api_url,
|
includes/download-functions.php
CHANGED
@@ -1208,8 +1208,7 @@ function edd_get_download_token( $url = '' ) {
|
|
1208 |
|
1209 |
}
|
1210 |
|
1211 |
-
$token =
|
1212 |
-
|
1213 |
return $token;
|
1214 |
|
1215 |
}
|
@@ -1261,7 +1260,7 @@ function edd_validate_url_token( $url = '' ) {
|
|
1261 |
|
1262 |
}
|
1263 |
|
1264 |
-
if ( isset( $query_args['token'] ) && $query_args['token']
|
1265 |
|
1266 |
$ret = true;
|
1267 |
|
1208 |
|
1209 |
}
|
1210 |
|
1211 |
+
$token = hash_hmac( 'sha256', $parts['path'] . '?' . $parts['query'], wp_salt( 'edd_file_download_link' ) );
|
|
|
1212 |
return $token;
|
1213 |
|
1214 |
}
|
1260 |
|
1261 |
}
|
1262 |
|
1263 |
+
if ( isset( $query_args['token'] ) && hash_equals( $query_args['token'], edd_get_download_token( $url ) ) ) {
|
1264 |
|
1265 |
$ret = true;
|
1266 |
|
includes/gateways/manual.php
CHANGED
@@ -50,15 +50,15 @@ function edd_manual_payment( $purchase_data ) {
|
|
50 |
*/
|
51 |
|
52 |
$payment_data = array(
|
53 |
-
'price'
|
54 |
-
'date'
|
55 |
-
'user_email'
|
56 |
-
'purchase_key'
|
57 |
-
'currency'
|
58 |
-
'downloads'
|
59 |
-
'user_info'
|
60 |
-
'cart_details'
|
61 |
-
'status'
|
62 |
);
|
63 |
|
64 |
// Record the pending payment
|
50 |
*/
|
51 |
|
52 |
$payment_data = array(
|
53 |
+
'price' => $purchase_data['price'],
|
54 |
+
'date' => $purchase_data['date'],
|
55 |
+
'user_email' => $purchase_data['user_email'],
|
56 |
+
'purchase_key' => $purchase_data['purchase_key'],
|
57 |
+
'currency' => edd_get_currency(),
|
58 |
+
'downloads' => $purchase_data['downloads'],
|
59 |
+
'user_info' => $purchase_data['user_info'],
|
60 |
+
'cart_details' => $purchase_data['cart_details'],
|
61 |
+
'status' => 'pending',
|
62 |
);
|
63 |
|
64 |
// Record the pending payment
|
includes/install.php
CHANGED
@@ -229,27 +229,27 @@ function edd_run_install() {
|
|
229 |
* When a new Blog is created in multisite, see if EDD is network activated, and run the installer
|
230 |
*
|
231 |
* @since 2.5
|
232 |
-
* @param int
|
233 |
-
* @param int $user_id The User ID set as the admin
|
234 |
-
* @param string $domain The URL
|
235 |
-
* @param string $path Site Path
|
236 |
-
* @param int $site_id The Site ID
|
237 |
-
* @param array $meta Blog Meta
|
238 |
* @return void
|
239 |
*/
|
240 |
-
function edd_new_blog_created( $
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
switch_to_blog( $blog_id );
|
245 |
-
edd_install();
|
246 |
-
restore_current_blog();
|
247 |
|
|
|
|
|
248 |
}
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
-
add_action( 'wpmu_new_blog', 'edd_new_blog_created', 10, 6 );
|
252 |
-
|
253 |
|
254 |
/**
|
255 |
* Drop our custom tables when a mu site is deleted
|
229 |
* When a new Blog is created in multisite, see if EDD is network activated, and run the installer
|
230 |
*
|
231 |
* @since 2.5
|
232 |
+
* @param int|WP_Site $blog WordPress 5.1 passes a WP_Site object.
|
|
|
|
|
|
|
|
|
|
|
233 |
* @return void
|
234 |
*/
|
235 |
+
function edd_new_blog_created( $blog ) {
|
236 |
+
if ( ! is_plugin_active_for_network( plugin_basename( EDD_PLUGIN_FILE ) ) ) {
|
237 |
+
return;
|
238 |
+
}
|
|
|
|
|
|
|
239 |
|
240 |
+
if ( ! is_int( $blog ) ) {
|
241 |
+
$blog = $blog->id;
|
242 |
}
|
243 |
|
244 |
+
switch_to_blog( $blog );
|
245 |
+
edd_install();
|
246 |
+
restore_current_blog();
|
247 |
+
}
|
248 |
+
if ( version_compare( get_bloginfo( 'version' ), '5.1', '>=' ) ) {
|
249 |
+
add_action( 'wp_initialize_site', 'edd_new_blog_created' );
|
250 |
+
} else {
|
251 |
+
add_action( 'wpmu_new_blog', 'edd_new_blog_created' );
|
252 |
}
|
|
|
|
|
253 |
|
254 |
/**
|
255 |
* Drop our custom tables when a mu site is deleted
|
includes/process-download.php
CHANGED
@@ -184,6 +184,11 @@ function edd_process_download() {
|
|
184 |
set_magic_quotes_runtime(0);
|
185 |
}
|
186 |
|
|
|
|
|
|
|
|
|
|
|
187 |
@session_write_close();
|
188 |
if( function_exists( 'apache_setenv' ) ) {
|
189 |
@apache_setenv('no-gzip', 1);
|
@@ -979,6 +984,36 @@ function edd_check_file_url_head( $requested_file, $args, $method ) {
|
|
979 |
}
|
980 |
|
981 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
982 |
/**
|
983 |
* Filter removed in EDD 2.7
|
984 |
*
|
184 |
set_magic_quotes_runtime(0);
|
185 |
}
|
186 |
|
187 |
+
$file_is_in_allowed_location = edd_local_file_location_is_allowed( $file_details, $schemes, $requested_file );
|
188 |
+
if ( false === $file_is_in_allowed_location ) {
|
189 |
+
wp_die( __( 'Sorry, this file could not be downloaded.', 'easy-digital-downloads' ), __( 'Error Downloading File', 'easy-digital-downloads' ), 403 );
|
190 |
+
}
|
191 |
+
|
192 |
@session_write_close();
|
193 |
if( function_exists( 'apache_setenv' ) ) {
|
194 |
@apache_setenv('no-gzip', 1);
|
984 |
}
|
985 |
|
986 |
}
|
987 |
+
|
988 |
+
/**
|
989 |
+
* Determines if a file should be allowed to be downloaded by making sure it's within the wp-content directory.
|
990 |
+
*
|
991 |
+
* @since 2.9.13
|
992 |
+
*
|
993 |
+
* @param $file_details
|
994 |
+
* @param $schemas
|
995 |
+
* @param $requested_file
|
996 |
+
*
|
997 |
+
* @return boolean
|
998 |
+
*/
|
999 |
+
function edd_local_file_location_is_allowed( $file_details, $schemas, $requested_file ) {
|
1000 |
+
$should_allow = true;
|
1001 |
+
|
1002 |
+
// If the file is an absolute path, make sure it's in the wp-content directory, to prevent store owners from accidentally allowing privileged files from being downloaded.
|
1003 |
+
if ( ( ! isset( $file_details['scheme'] ) || ! in_array( $file_details['scheme'], $schemas ) ) && isset( $file_details['path'] ) ) {
|
1004 |
+
/** This is an absolute path */
|
1005 |
+
|
1006 |
+
$requested_file = realpath( $requested_file );
|
1007 |
+
|
1008 |
+
if ( 0 !== strpos( $requested_file, ABSPATH ) || false === strpos( $requested_file, WP_CONTENT_DIR ) ) {
|
1009 |
+
// If the file is not within the WP_CONTENT_DIR, it should not be able to be downloaded.
|
1010 |
+
$should_allow = false;
|
1011 |
+
}
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
return apply_filters( 'edd_local_file_location_is_allowed', $should_allow, $file_details, $schemas, $requested_file );
|
1015 |
+
}
|
1016 |
+
|
1017 |
/**
|
1018 |
* Filter removed in EDD 2.7
|
1019 |
*
|
includes/scripts.php
CHANGED
@@ -233,6 +233,7 @@ function edd_load_admin_scripts( $hook ) {
|
|
233 |
'unsupported_browser' => __( 'We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser.', 'easy-digital-downloads' ),
|
234 |
'show_advanced_settings' => __( 'Show advanced settings', 'easy-digital-downloads' ),
|
235 |
'hide_advanced_settings' => __( 'Hide advanced settings', 'easy-digital-downloads' ),
|
|
|
236 |
));
|
237 |
|
238 |
/*
|
@@ -378,4 +379,4 @@ add_action( 'wp_head', 'edd_load_head_styles' );
|
|
378 |
*/
|
379 |
function edd_scripts_in_footer() {
|
380 |
return apply_filters( 'edd_load_scripts_in_footer', true );
|
381 |
-
}
|
233 |
'unsupported_browser' => __( 'We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser.', 'easy-digital-downloads' ),
|
234 |
'show_advanced_settings' => __( 'Show advanced settings', 'easy-digital-downloads' ),
|
235 |
'hide_advanced_settings' => __( 'Hide advanced settings', 'easy-digital-downloads' ),
|
236 |
+
'no_downloads_error' => __( 'There are no downloads attached to this payment', 'easy-digital-downloads' ),
|
237 |
));
|
238 |
|
239 |
/*
|
379 |
*/
|
380 |
function edd_scripts_in_footer() {
|
381 |
return apply_filters( 'edd_load_scripts_in_footer', true );
|
382 |
+
}
|
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.
|
6 |
"Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
|
7 |
-
"POT-Creation-Date: 2019-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -28,21 +28,21 @@ msgstr ""
|
|
28 |
msgid "Cheatin’ huh?"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: includes/EDD_SL_Plugin_Updater.php:
|
32 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: includes/EDD_SL_Plugin_Updater.php:
|
36 |
msgid ""
|
37 |
"There is a new version of %1$s available. %2$sView version %3$s details%4$s "
|
38 |
"or %5$supdate now%6$s."
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: includes/EDD_SL_Plugin_Updater.php:
|
42 |
msgid "You do not have permission to install plugin updates"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/EDD_SL_Plugin_Updater.php:
|
46 |
#: includes/admin/customers/customer-actions.php:301
|
47 |
#: includes/admin/customers/customer-actions.php:345
|
48 |
#: includes/admin/customers/customer-actions.php:603
|
@@ -91,13 +91,13 @@ msgstr ""
|
|
91 |
#: includes/api/class-edd-api.php:1969 includes/api/class-edd-api.php:1974
|
92 |
#: includes/api/class-edd-api.php:1986 includes/api/class-edd-api.php:1988
|
93 |
#: includes/cart/class-edd-cart.php:1424 includes/cart/class-edd-cart.php:1438
|
94 |
-
#: includes/class-edd-license-handler.php:
|
95 |
#: includes/deprecated-functions.php:517 includes/deprecated-functions.php:532
|
96 |
-
#: includes/deprecated-functions.php:542 includes/download-functions.php:
|
97 |
#: includes/emails/actions.php:53 includes/emails/template.php:243
|
98 |
#: includes/error-tracking.php:40 includes/gateways/functions.php:221
|
99 |
#: includes/gateways/manual.php:33 includes/gateways/paypal-standard.php:168
|
100 |
-
#: includes/process-download.php:
|
101 |
#: includes/query-filters.php:48 includes/user-functions.php:895
|
102 |
#: includes/user-functions.php:920 includes/user-functions.php:973
|
103 |
msgid "Error"
|
@@ -418,15 +418,15 @@ msgstr ""
|
|
418 |
msgid "Unnamed Customer"
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: includes/admin/customers/class-customer-table.php:
|
422 |
msgid "View"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: includes/admin/customers/class-customer-table.php:
|
426 |
msgid "Download log"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: includes/admin/customers/class-customer-table.php:
|
430 |
#: includes/admin/discounts/class-discount-codes-table.php:215
|
431 |
#: includes/admin/discounts/class-discount-codes-table.php:267
|
432 |
#: includes/admin/payments/class-payments-table.php:367
|
@@ -445,7 +445,7 @@ msgstr ""
|
|
445 |
#: includes/admin/discounts/class-discount-codes-table.php:142
|
446 |
#: includes/admin/discounts/edit-discount.php:46
|
447 |
#: includes/admin/downloads/dashboard-columns.php:31
|
448 |
-
#: includes/admin/payments/view-order-details.php:
|
449 |
#: includes/admin/reporting/class-export-customers.php:74
|
450 |
#: includes/admin/reporting/export/class-batch-export-customers.php:42
|
451 |
#: includes/admin/reporting/export/class-batch-export-downloads.php:43
|
@@ -551,7 +551,7 @@ msgstr ""
|
|
551 |
#: includes/admin/import/import-functions.php:113
|
552 |
#: includes/admin/reporting/export/export-actions.php:23
|
553 |
#: includes/api/class-edd-api.php:1969
|
554 |
-
#: includes/class-edd-license-handler.php:
|
555 |
msgid "Nonce verification failed"
|
556 |
msgstr ""
|
557 |
|
@@ -610,7 +610,7 @@ msgid "Invalid Customer ID Provided."
|
|
610 |
msgstr ""
|
611 |
|
612 |
#: includes/admin/customers/customers.php:116
|
613 |
-
#: includes/admin/payments/view-order-details.php:
|
614 |
msgid "Customer Details"
|
615 |
msgstr ""
|
616 |
|
@@ -683,8 +683,8 @@ msgstr ""
|
|
683 |
|
684 |
#: includes/admin/customers/customers.php:333
|
685 |
#: includes/admin/customers/customers.php:695
|
686 |
-
#: includes/admin/payments/view-order-details.php:
|
687 |
-
#: includes/admin/payments/view-order-details.php:
|
688 |
#: includes/admin/thickbox.php:136 includes/class-edd-html-elements.php:796
|
689 |
msgid "Cancel"
|
690 |
msgstr ""
|
@@ -711,7 +711,7 @@ msgstr ""
|
|
711 |
|
712 |
#: includes/admin/customers/customers.php:383
|
713 |
#: includes/admin/payments/class-payments-table.php:270
|
714 |
-
#: includes/admin/payments/view-order-details.php:
|
715 |
#: includes/admin/reporting/class-export-customers.php:66
|
716 |
#: includes/admin/reporting/class-export-customers.php:77
|
717 |
#: includes/admin/reporting/class-export-payments.php:61
|
@@ -725,10 +725,10 @@ msgstr ""
|
|
725 |
#: includes/admin/customers/customers.php:384
|
726 |
#: includes/admin/customers/customers.php:443
|
727 |
#: includes/admin/customers/customers.php:476
|
728 |
-
#: includes/admin/payments/view-order-details.php:
|
729 |
-
#: includes/admin/payments/view-order-details.php:
|
730 |
-
#: includes/admin/payments/view-order-details.php:
|
731 |
-
#: includes/admin/payments/view-order-details.php:
|
732 |
#: templates/checkout_cart.php:13
|
733 |
msgid "Actions"
|
734 |
msgstr ""
|
@@ -743,7 +743,7 @@ msgstr ""
|
|
743 |
#: includes/admin/downloads/metabox.php:642
|
744 |
#: includes/admin/downloads/metabox.php:698
|
745 |
#: includes/admin/downloads/metabox.php:823
|
746 |
-
#: includes/admin/payments/view-order-details.php:
|
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
|
@@ -827,7 +827,7 @@ msgid "No Payments Found"
|
|
827 |
msgstr ""
|
828 |
|
829 |
#: includes/admin/customers/customers.php:468
|
830 |
-
#: includes/admin/payments/view-order-details.php:
|
831 |
msgid "Purchased %s"
|
832 |
msgstr ""
|
833 |
|
@@ -1535,7 +1535,7 @@ msgstr ""
|
|
1535 |
#: includes/admin/downloads/dashboard-columns.php:34
|
1536 |
#: includes/admin/downloads/dashboard-columns.php:286
|
1537 |
#: includes/admin/downloads/metabox.php:456
|
1538 |
-
#: includes/admin/payments/view-order-details.php:
|
1539 |
#: includes/admin/reporting/export/class-batch-export-downloads.php:51
|
1540 |
#: templates/shortcode-receipt.php:130
|
1541 |
msgid "Price"
|
@@ -2255,7 +2255,7 @@ msgid "Fees"
|
|
2255 |
msgstr ""
|
2256 |
|
2257 |
#: includes/admin/payments/view-order-details.php:175
|
2258 |
-
#: includes/admin/payments/view-order-details.php:
|
2259 |
#: includes/admin/reporting/class-export-payments.php:73
|
2260 |
#: includes/admin/reporting/export/class-batch-export-payments.php:55
|
2261 |
#: includes/admin/tools.php:632 templates/checkout_cart.php:120
|
@@ -2348,96 +2348,100 @@ msgstr ""
|
|
2348 |
msgid "View all purchases of customer"
|
2349 |
msgstr ""
|
2350 |
|
2351 |
-
#: includes/admin/payments/view-order-details.php:
|
|
|
|
|
|
|
|
|
2352 |
msgid "Deleted"
|
2353 |
msgstr ""
|
2354 |
|
2355 |
-
#: includes/admin/payments/view-order-details.php:
|
2356 |
msgid "%s deleted"
|
2357 |
msgstr ""
|
2358 |
|
2359 |
-
#: includes/admin/payments/view-order-details.php:
|
2360 |
msgid "Copy Download Link(s)"
|
2361 |
msgstr ""
|
2362 |
|
2363 |
-
#: includes/admin/payments/view-order-details.php:
|
2364 |
msgid "No %s included with this purchase"
|
2365 |
msgstr ""
|
2366 |
|
2367 |
-
#: includes/admin/payments/view-order-details.php:
|
2368 |
-
#: includes/admin/payments/view-order-details.php:
|
2369 |
msgid "Add New %s"
|
2370 |
msgstr ""
|
2371 |
|
2372 |
-
#: includes/admin/payments/view-order-details.php:
|
2373 |
msgid " & Quantity"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
-
#: includes/admin/payments/view-order-details.php:
|
2377 |
msgid "Assign to another customer"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
-
#: includes/admin/payments/view-order-details.php:
|
2381 |
msgid "New Customer"
|
2382 |
msgstr ""
|
2383 |
|
2384 |
-
#: includes/admin/payments/view-order-details.php:
|
2385 |
msgid "Select a customer"
|
2386 |
msgstr ""
|
2387 |
|
2388 |
-
#: includes/admin/payments/view-order-details.php:
|
2389 |
#: includes/class-edd-html-elements.php:245
|
2390 |
msgid "Type to search all Customers"
|
2391 |
msgstr ""
|
2392 |
|
2393 |
-
#: includes/admin/payments/view-order-details.php:
|
2394 |
msgid "Click \"Save Payment\" to change the customer"
|
2395 |
msgstr ""
|
2396 |
|
2397 |
-
#: includes/admin/payments/view-order-details.php:
|
2398 |
msgid "Click \"Save Payment\" to create new customer"
|
2399 |
msgstr ""
|
2400 |
|
2401 |
-
#: includes/admin/payments/view-order-details.php:
|
2402 |
#: includes/checkout/template.php:347 includes/privacy-functions.php:763
|
2403 |
msgid "Billing Address"
|
2404 |
msgstr ""
|
2405 |
|
2406 |
-
#: includes/admin/payments/view-order-details.php:
|
2407 |
msgid "Street Address Line 1:"
|
2408 |
msgstr ""
|
2409 |
|
2410 |
-
#: includes/admin/payments/view-order-details.php:
|
2411 |
msgid "Street Address Line 2:"
|
2412 |
msgstr ""
|
2413 |
|
2414 |
-
#: includes/admin/payments/view-order-details.php:
|
2415 |
#: includes/admin/settings/register-settings.php:322
|
2416 |
msgid "Select a country"
|
2417 |
msgstr ""
|
2418 |
|
2419 |
-
#: includes/admin/payments/view-order-details.php:
|
2420 |
msgid "Type to search all Countries"
|
2421 |
msgstr ""
|
2422 |
|
2423 |
-
#: includes/admin/payments/view-order-details.php:
|
2424 |
#: includes/admin/settings/register-settings.php:333
|
2425 |
msgid "Select a state"
|
2426 |
msgstr ""
|
2427 |
|
2428 |
-
#: includes/admin/payments/view-order-details.php:
|
2429 |
msgid "Type to search all States/Provinces"
|
2430 |
msgstr ""
|
2431 |
|
2432 |
-
#: includes/admin/payments/view-order-details.php:
|
2433 |
msgid "Payment Notes"
|
2434 |
msgstr ""
|
2435 |
|
2436 |
-
#: includes/admin/payments/view-order-details.php:
|
2437 |
msgid "No payment notes"
|
2438 |
msgstr ""
|
2439 |
|
2440 |
-
#: includes/admin/payments/view-order-details.php:
|
2441 |
msgid "Add Note"
|
2442 |
msgstr ""
|
2443 |
|
@@ -5910,13 +5914,13 @@ msgid ""
|
|
5910 |
"target=\"_blank\">renew your license</a>."
|
5911 |
msgstr ""
|
5912 |
|
5913 |
-
#: includes/class-edd-license-handler.php:
|
5914 |
msgid ""
|
5915 |
"You have invalid or expired license keys for Easy Digital Downloads. Please "
|
5916 |
"go to the <a href=\"%s\">Licenses page</a> to correct this issue."
|
5917 |
msgstr ""
|
5918 |
|
5919 |
-
#: includes/class-edd-license-handler.php:
|
5920 |
msgid "Enter valid license key for automatic updates."
|
5921 |
msgstr ""
|
5922 |
|
@@ -6328,11 +6332,11 @@ msgid ""
|
|
6328 |
"of a purchase. HTML is accepted. Available template tags:"
|
6329 |
msgstr ""
|
6330 |
|
6331 |
-
#: includes/deprecated-functions.php:517 includes/process-download.php:
|
6332 |
msgid "Sorry but you have hit your download limit for this file."
|
6333 |
msgstr ""
|
6334 |
|
6335 |
-
#: includes/deprecated-functions.php:532 includes/download-functions.php:
|
6336 |
msgid "Sorry but your download link has expired."
|
6337 |
msgstr ""
|
6338 |
|
@@ -7611,23 +7615,31 @@ msgstr ""
|
|
7611 |
msgid "File download error"
|
7612 |
msgstr ""
|
7613 |
|
7614 |
-
#: includes/process-download.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7615 |
msgid "You do not have permission to download this file"
|
7616 |
msgstr ""
|
7617 |
|
7618 |
-
#: includes/process-download.php:
|
7619 |
msgid "Purchase Verification Failed"
|
7620 |
msgstr ""
|
7621 |
|
7622 |
-
#: includes/process-download.php:
|
7623 |
msgid "Invalid file"
|
7624 |
msgstr ""
|
7625 |
|
7626 |
-
#: includes/process-download.php:
|
7627 |
msgid "The requested file could not be found. Error 404."
|
7628 |
msgstr ""
|
7629 |
|
7630 |
-
#: includes/process-download.php:
|
7631 |
msgid "File not found"
|
7632 |
msgstr ""
|
7633 |
|
@@ -7903,19 +7915,23 @@ msgstr ""
|
|
7903 |
msgid "Hide advanced settings"
|
7904 |
msgstr ""
|
7905 |
|
7906 |
-
#: includes/scripts.php:
|
7907 |
-
msgid "
|
7908 |
msgstr ""
|
7909 |
|
7910 |
#: includes/scripts.php:247
|
7911 |
-
msgid "
|
7912 |
msgstr ""
|
7913 |
|
7914 |
#: includes/scripts.php:248
|
7915 |
-
msgid "
|
7916 |
msgstr ""
|
7917 |
|
7918 |
#: includes/scripts.php:249
|
|
|
|
|
|
|
|
|
7919 |
msgid "Recurring Payments Settings"
|
7920 |
msgstr ""
|
7921 |
|
@@ -8382,87 +8398,87 @@ msgctxt "Customer Details page tab title"
|
|
8382 |
msgid "Customer %s"
|
8383 |
msgstr ""
|
8384 |
|
8385 |
-
#: includes/admin/payments/view-order-details.php:
|
8386 |
msgctxt "payment details purchased item title - full screen"
|
8387 |
msgid "%s Purchased"
|
8388 |
msgstr ""
|
8389 |
|
8390 |
-
#: includes/admin/payments/view-order-details.php:
|
8391 |
msgctxt "payment details purchased item price - full screen"
|
8392 |
msgid "Price"
|
8393 |
msgstr ""
|
8394 |
|
8395 |
-
#: includes/admin/payments/view-order-details.php:
|
8396 |
msgctxt "payment details purchased item quantity - full screen"
|
8397 |
msgid " & Quantity"
|
8398 |
msgstr ""
|
8399 |
|
8400 |
-
#: includes/admin/payments/view-order-details.php:
|
8401 |
msgctxt "payment details purchased item tax - full screen"
|
8402 |
msgid "Tax"
|
8403 |
msgstr ""
|
8404 |
|
8405 |
-
#: includes/admin/payments/view-order-details.php:
|
8406 |
msgctxt "payment details purchased item total - full screen"
|
8407 |
msgid "%s Total"
|
8408 |
msgstr ""
|
8409 |
|
8410 |
-
#: includes/admin/payments/view-order-details.php:
|
8411 |
msgctxt "payment details purchased item price - mobile"
|
8412 |
msgid "Price"
|
8413 |
msgstr ""
|
8414 |
|
8415 |
-
#: includes/admin/payments/view-order-details.php:
|
8416 |
msgctxt "payment details purchased item quantity - mobile"
|
8417 |
msgid " & Quantity"
|
8418 |
msgstr ""
|
8419 |
|
8420 |
-
#: includes/admin/payments/view-order-details.php:
|
8421 |
msgctxt "payment details purchased item tax - mobile"
|
8422 |
msgid "Tax"
|
8423 |
msgstr ""
|
8424 |
|
8425 |
-
#: includes/admin/payments/view-order-details.php:
|
8426 |
msgctxt "payment details purchased item total - mobile"
|
8427 |
msgid "%s Total"
|
8428 |
msgstr ""
|
8429 |
|
8430 |
-
#: includes/admin/payments/view-order-details.php:
|
8431 |
msgctxt "payment details select item to add - mobile"
|
8432 |
msgid "Select New %s To Add"
|
8433 |
msgstr ""
|
8434 |
|
8435 |
-
#: includes/admin/payments/view-order-details.php:
|
8436 |
msgctxt "payment details add item price - mobile"
|
8437 |
msgid "Price"
|
8438 |
msgstr ""
|
8439 |
|
8440 |
-
#: includes/admin/payments/view-order-details.php:
|
8441 |
msgctxt "payment details add item quantity - mobile"
|
8442 |
msgid " & Quantity"
|
8443 |
msgstr ""
|
8444 |
|
8445 |
-
#: includes/admin/payments/view-order-details.php:
|
8446 |
msgctxt "payment details add item tax - mobile"
|
8447 |
msgid "Tax"
|
8448 |
msgstr ""
|
8449 |
|
8450 |
-
#: includes/admin/payments/view-order-details.php:
|
8451 |
msgctxt "Address City"
|
8452 |
msgid "City:"
|
8453 |
msgstr ""
|
8454 |
|
8455 |
-
#: includes/admin/payments/view-order-details.php:
|
8456 |
msgctxt "Zip / Postal code of address"
|
8457 |
msgid "Zip / Postal Code:"
|
8458 |
msgstr ""
|
8459 |
|
8460 |
-
#: includes/admin/payments/view-order-details.php:
|
8461 |
msgctxt "Address country"
|
8462 |
msgid "Country:"
|
8463 |
msgstr ""
|
8464 |
|
8465 |
-
#: includes/admin/payments/view-order-details.php:
|
8466 |
msgctxt "State / province of address"
|
8467 |
msgid "State / Province:"
|
8468 |
msgstr ""
|
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.13\n"
|
6 |
"Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
|
7 |
+
"POT-Creation-Date: 2019-05-07 23:48:51+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
28 |
msgid "Cheatin’ huh?"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/EDD_SL_Plugin_Updater.php:236
|
32 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s."
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: includes/EDD_SL_Plugin_Updater.php:244
|
36 |
msgid ""
|
37 |
"There is a new version of %1$s available. %2$sView version %3$s details%4$s "
|
38 |
"or %5$supdate now%6$s."
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: includes/EDD_SL_Plugin_Updater.php:487
|
42 |
msgid "You do not have permission to install plugin updates"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: includes/EDD_SL_Plugin_Updater.php:487
|
46 |
#: includes/admin/customers/customer-actions.php:301
|
47 |
#: includes/admin/customers/customer-actions.php:345
|
48 |
#: includes/admin/customers/customer-actions.php:603
|
91 |
#: includes/api/class-edd-api.php:1969 includes/api/class-edd-api.php:1974
|
92 |
#: includes/api/class-edd-api.php:1986 includes/api/class-edd-api.php:1988
|
93 |
#: includes/cart/class-edd-cart.php:1424 includes/cart/class-edd-cart.php:1438
|
94 |
+
#: includes/class-edd-license-handler.php:309
|
95 |
#: includes/deprecated-functions.php:517 includes/deprecated-functions.php:532
|
96 |
+
#: includes/deprecated-functions.php:542 includes/download-functions.php:1259
|
97 |
#: includes/emails/actions.php:53 includes/emails/template.php:243
|
98 |
#: includes/error-tracking.php:40 includes/gateways/functions.php:221
|
99 |
#: includes/gateways/manual.php:33 includes/gateways/paypal-standard.php:168
|
100 |
+
#: includes/process-download.php:298 includes/process-download.php:889
|
101 |
#: includes/query-filters.php:48 includes/user-functions.php:895
|
102 |
#: includes/user-functions.php:920 includes/user-functions.php:973
|
103 |
msgid "Error"
|
418 |
msgid "Unnamed Customer"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: includes/admin/customers/class-customer-table.php:158
|
422 |
msgid "View"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: includes/admin/customers/class-customer-table.php:159
|
426 |
msgid "Download log"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: includes/admin/customers/class-customer-table.php:160
|
430 |
#: includes/admin/discounts/class-discount-codes-table.php:215
|
431 |
#: includes/admin/discounts/class-discount-codes-table.php:267
|
432 |
#: includes/admin/payments/class-payments-table.php:367
|
445 |
#: includes/admin/discounts/class-discount-codes-table.php:142
|
446 |
#: includes/admin/discounts/edit-discount.php:46
|
447 |
#: includes/admin/downloads/dashboard-columns.php:31
|
448 |
+
#: includes/admin/payments/view-order-details.php:693
|
449 |
#: includes/admin/reporting/class-export-customers.php:74
|
450 |
#: includes/admin/reporting/export/class-batch-export-customers.php:42
|
451 |
#: includes/admin/reporting/export/class-batch-export-downloads.php:43
|
551 |
#: includes/admin/import/import-functions.php:113
|
552 |
#: includes/admin/reporting/export/export-actions.php:23
|
553 |
#: includes/api/class-edd-api.php:1969
|
554 |
+
#: includes/class-edd-license-handler.php:309
|
555 |
msgid "Nonce verification failed"
|
556 |
msgstr ""
|
557 |
|
610 |
msgstr ""
|
611 |
|
612 |
#: includes/admin/customers/customers.php:116
|
613 |
+
#: includes/admin/payments/view-order-details.php:646
|
614 |
msgid "Customer Details"
|
615 |
msgstr ""
|
616 |
|
683 |
|
684 |
#: includes/admin/customers/customers.php:333
|
685 |
#: includes/admin/customers/customers.php:695
|
686 |
+
#: includes/admin/payments/view-order-details.php:684
|
687 |
+
#: includes/admin/payments/view-order-details.php:704
|
688 |
#: includes/admin/thickbox.php:136 includes/class-edd-html-elements.php:796
|
689 |
msgid "Cancel"
|
690 |
msgstr ""
|
711 |
|
712 |
#: includes/admin/customers/customers.php:383
|
713 |
#: includes/admin/payments/class-payments-table.php:270
|
714 |
+
#: includes/admin/payments/view-order-details.php:697
|
715 |
#: includes/admin/reporting/class-export-customers.php:66
|
716 |
#: includes/admin/reporting/class-export-customers.php:77
|
717 |
#: includes/admin/reporting/class-export-payments.php:61
|
725 |
#: includes/admin/customers/customers.php:384
|
726 |
#: includes/admin/customers/customers.php:443
|
727 |
#: includes/admin/customers/customers.php:476
|
728 |
+
#: includes/admin/payments/view-order-details.php:555
|
729 |
+
#: includes/admin/payments/view-order-details.php:618
|
730 |
+
#: includes/admin/payments/view-order-details.php:681
|
731 |
+
#: includes/admin/payments/view-order-details.php:701
|
732 |
#: templates/checkout_cart.php:13
|
733 |
msgid "Actions"
|
734 |
msgstr ""
|
743 |
#: includes/admin/downloads/metabox.php:642
|
744 |
#: includes/admin/downloads/metabox.php:698
|
745 |
#: includes/admin/downloads/metabox.php:823
|
746 |
+
#: includes/admin/payments/view-order-details.php:523
|
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
|
827 |
msgstr ""
|
828 |
|
829 |
#: includes/admin/customers/customers.php:468
|
830 |
+
#: includes/admin/payments/view-order-details.php:384
|
831 |
msgid "Purchased %s"
|
832 |
msgstr ""
|
833 |
|
1535 |
#: includes/admin/downloads/dashboard-columns.php:34
|
1536 |
#: includes/admin/downloads/dashboard-columns.php:286
|
1537 |
#: includes/admin/downloads/metabox.php:456
|
1538 |
+
#: includes/admin/payments/view-order-details.php:543
|
1539 |
#: includes/admin/reporting/export/class-batch-export-downloads.php:51
|
1540 |
#: templates/shortcode-receipt.php:130
|
1541 |
msgid "Price"
|
2255 |
msgstr ""
|
2256 |
|
2257 |
#: includes/admin/payments/view-order-details.php:175
|
2258 |
+
#: includes/admin/payments/view-order-details.php:551
|
2259 |
#: includes/admin/reporting/class-export-payments.php:73
|
2260 |
#: includes/admin/reporting/export/class-batch-export-payments.php:55
|
2261 |
#: includes/admin/tools.php:632 templates/checkout_cart.php:120
|
2348 |
msgid "View all purchases of customer"
|
2349 |
msgstr ""
|
2350 |
|
2351 |
+
#: includes/admin/payments/view-order-details.php:354
|
2352 |
+
msgid "No download attached to this order"
|
2353 |
+
msgstr ""
|
2354 |
+
|
2355 |
+
#: includes/admin/payments/view-order-details.php:455
|
2356 |
msgid "Deleted"
|
2357 |
msgstr ""
|
2358 |
|
2359 |
+
#: includes/admin/payments/view-order-details.php:457
|
2360 |
msgid "%s deleted"
|
2361 |
msgstr ""
|
2362 |
|
2363 |
+
#: includes/admin/payments/view-order-details.php:520
|
2364 |
msgid "Copy Download Link(s)"
|
2365 |
msgstr ""
|
2366 |
|
2367 |
+
#: includes/admin/payments/view-order-details.php:532
|
2368 |
msgid "No %s included with this purchase"
|
2369 |
msgstr ""
|
2370 |
|
2371 |
+
#: includes/admin/payments/view-order-details.php:540
|
2372 |
+
#: includes/admin/payments/view-order-details.php:620
|
2373 |
msgid "Add New %s"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: includes/admin/payments/view-order-details.php:545
|
2377 |
msgid " & Quantity"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
+
#: includes/admin/payments/view-order-details.php:659
|
2381 |
msgid "Assign to another customer"
|
2382 |
msgstr ""
|
2383 |
|
2384 |
+
#: includes/admin/payments/view-order-details.php:661
|
2385 |
msgid "New Customer"
|
2386 |
msgstr ""
|
2387 |
|
2388 |
+
#: includes/admin/payments/view-order-details.php:667
|
2389 |
msgid "Select a customer"
|
2390 |
msgstr ""
|
2391 |
|
2392 |
+
#: includes/admin/payments/view-order-details.php:673
|
2393 |
#: includes/class-edd-html-elements.php:245
|
2394 |
msgid "Type to search all Customers"
|
2395 |
msgstr ""
|
2396 |
|
2397 |
+
#: includes/admin/payments/view-order-details.php:687
|
2398 |
msgid "Click \"Save Payment\" to change the customer"
|
2399 |
msgstr ""
|
2400 |
|
2401 |
+
#: includes/admin/payments/view-order-details.php:707
|
2402 |
msgid "Click \"Save Payment\" to create new customer"
|
2403 |
msgstr ""
|
2404 |
|
2405 |
+
#: includes/admin/payments/view-order-details.php:722
|
2406 |
#: includes/checkout/template.php:347 includes/privacy-functions.php:763
|
2407 |
msgid "Billing Address"
|
2408 |
msgstr ""
|
2409 |
|
2410 |
+
#: includes/admin/payments/view-order-details.php:732
|
2411 |
msgid "Street Address Line 1:"
|
2412 |
msgstr ""
|
2413 |
|
2414 |
+
#: includes/admin/payments/view-order-details.php:736
|
2415 |
msgid "Street Address Line 2:"
|
2416 |
msgstr ""
|
2417 |
|
2418 |
+
#: includes/admin/payments/view-order-details.php:765
|
2419 |
#: includes/admin/settings/register-settings.php:322
|
2420 |
msgid "Select a country"
|
2421 |
msgstr ""
|
2422 |
|
2423 |
+
#: includes/admin/payments/view-order-details.php:768
|
2424 |
msgid "Type to search all Countries"
|
2425 |
msgstr ""
|
2426 |
|
2427 |
+
#: includes/admin/payments/view-order-details.php:787
|
2428 |
#: includes/admin/settings/register-settings.php:333
|
2429 |
msgid "Select a state"
|
2430 |
msgstr ""
|
2431 |
|
2432 |
+
#: includes/admin/payments/view-order-details.php:790
|
2433 |
msgid "Type to search all States/Provinces"
|
2434 |
msgstr ""
|
2435 |
|
2436 |
+
#: includes/admin/payments/view-order-details.php:811
|
2437 |
msgid "Payment Notes"
|
2438 |
msgstr ""
|
2439 |
|
2440 |
+
#: includes/admin/payments/view-order-details.php:826
|
2441 |
msgid "No payment notes"
|
2442 |
msgstr ""
|
2443 |
|
2444 |
+
#: includes/admin/payments/view-order-details.php:832
|
2445 |
msgid "Add Note"
|
2446 |
msgstr ""
|
2447 |
|
5914 |
"target=\"_blank\">renew your license</a>."
|
5915 |
msgstr ""
|
5916 |
|
5917 |
+
#: includes/class-edd-license-handler.php:432
|
5918 |
msgid ""
|
5919 |
"You have invalid or expired license keys for Easy Digital Downloads. Please "
|
5920 |
"go to the <a href=\"%s\">Licenses page</a> to correct this issue."
|
5921 |
msgstr ""
|
5922 |
|
5923 |
+
#: includes/class-edd-license-handler.php:470
|
5924 |
msgid "Enter valid license key for automatic updates."
|
5925 |
msgstr ""
|
5926 |
|
6332 |
"of a purchase. HTML is accepted. Available template tags:"
|
6333 |
msgstr ""
|
6334 |
|
6335 |
+
#: includes/deprecated-functions.php:517 includes/process-download.php:889
|
6336 |
msgid "Sorry but you have hit your download limit for this file."
|
6337 |
msgstr ""
|
6338 |
|
6339 |
+
#: includes/deprecated-functions.php:532 includes/download-functions.php:1259
|
6340 |
msgid "Sorry but your download link has expired."
|
6341 |
msgstr ""
|
6342 |
|
7615 |
msgid "File download error"
|
7616 |
msgstr ""
|
7617 |
|
7618 |
+
#: includes/process-download.php:189
|
7619 |
+
msgid "Sorry, this file could not be downloaded."
|
7620 |
+
msgstr ""
|
7621 |
+
|
7622 |
+
#: includes/process-download.php:189
|
7623 |
+
msgid "Error Downloading File"
|
7624 |
+
msgstr ""
|
7625 |
+
|
7626 |
+
#: includes/process-download.php:297
|
7627 |
msgid "You do not have permission to download this file"
|
7628 |
msgstr ""
|
7629 |
|
7630 |
+
#: includes/process-download.php:298
|
7631 |
msgid "Purchase Verification Failed"
|
7632 |
msgstr ""
|
7633 |
|
7634 |
+
#: includes/process-download.php:965
|
7635 |
msgid "Invalid file"
|
7636 |
msgstr ""
|
7637 |
|
7638 |
+
#: includes/process-download.php:972
|
7639 |
msgid "The requested file could not be found. Error 404."
|
7640 |
msgstr ""
|
7641 |
|
7642 |
+
#: includes/process-download.php:973
|
7643 |
msgid "File not found"
|
7644 |
msgstr ""
|
7645 |
|
7915 |
msgid "Hide advanced settings"
|
7916 |
msgstr ""
|
7917 |
|
7918 |
+
#: includes/scripts.php:236
|
7919 |
+
msgid "There are no downloads attached to this payment"
|
7920 |
msgstr ""
|
7921 |
|
7922 |
#: includes/scripts.php:247
|
7923 |
+
msgid "Purchase Limit Settings"
|
7924 |
msgstr ""
|
7925 |
|
7926 |
#: includes/scripts.php:248
|
7927 |
+
msgid "Simple Shipping Settings"
|
7928 |
msgstr ""
|
7929 |
|
7930 |
#: includes/scripts.php:249
|
7931 |
+
msgid "Software Licensing Settings"
|
7932 |
+
msgstr ""
|
7933 |
+
|
7934 |
+
#: includes/scripts.php:250
|
7935 |
msgid "Recurring Payments Settings"
|
7936 |
msgstr ""
|
7937 |
|
8398 |
msgid "Customer %s"
|
8399 |
msgstr ""
|
8400 |
|
8401 |
+
#: includes/admin/payments/view-order-details.php:389
|
8402 |
msgctxt "payment details purchased item title - full screen"
|
8403 |
msgid "%s Purchased"
|
8404 |
msgstr ""
|
8405 |
|
8406 |
+
#: includes/admin/payments/view-order-details.php:394
|
8407 |
msgctxt "payment details purchased item price - full screen"
|
8408 |
msgid "Price"
|
8409 |
msgstr ""
|
8410 |
|
8411 |
+
#: includes/admin/payments/view-order-details.php:396
|
8412 |
msgctxt "payment details purchased item quantity - full screen"
|
8413 |
msgid " & Quantity"
|
8414 |
msgstr ""
|
8415 |
|
8416 |
+
#: includes/admin/payments/view-order-details.php:403
|
8417 |
msgctxt "payment details purchased item tax - full screen"
|
8418 |
msgid "Tax"
|
8419 |
msgstr ""
|
8420 |
|
8421 |
+
#: includes/admin/payments/view-order-details.php:408
|
8422 |
msgctxt "payment details purchased item total - full screen"
|
8423 |
msgid "%s Total"
|
8424 |
msgstr ""
|
8425 |
|
8426 |
+
#: includes/admin/payments/view-order-details.php:483
|
8427 |
msgctxt "payment details purchased item price - mobile"
|
8428 |
msgid "Price"
|
8429 |
msgstr ""
|
8430 |
|
8431 |
+
#: includes/admin/payments/view-order-details.php:485
|
8432 |
msgctxt "payment details purchased item quantity - mobile"
|
8433 |
msgid " & Quantity"
|
8434 |
msgstr ""
|
8435 |
|
8436 |
+
#: includes/admin/payments/view-order-details.php:500
|
8437 |
msgctxt "payment details purchased item tax - mobile"
|
8438 |
msgid "Tax"
|
8439 |
msgstr ""
|
8440 |
|
8441 |
+
#: includes/admin/payments/view-order-details.php:509
|
8442 |
msgctxt "payment details purchased item total - mobile"
|
8443 |
msgid "%s Total"
|
8444 |
msgstr ""
|
8445 |
|
8446 |
+
#: includes/admin/payments/view-order-details.php:563
|
8447 |
msgctxt "payment details select item to add - mobile"
|
8448 |
msgid "Select New %s To Add"
|
8449 |
msgstr ""
|
8450 |
|
8451 |
+
#: includes/admin/payments/view-order-details.php:575
|
8452 |
msgctxt "payment details add item price - mobile"
|
8453 |
msgid "Price"
|
8454 |
msgstr ""
|
8455 |
|
8456 |
+
#: includes/admin/payments/view-order-details.php:577
|
8457 |
msgctxt "payment details add item quantity - mobile"
|
8458 |
msgid " & Quantity"
|
8459 |
msgstr ""
|
8460 |
|
8461 |
+
#: includes/admin/payments/view-order-details.php:601
|
8462 |
msgctxt "payment details add item tax - mobile"
|
8463 |
msgid "Tax"
|
8464 |
msgstr ""
|
8465 |
|
8466 |
+
#: includes/admin/payments/view-order-details.php:743
|
8467 |
msgctxt "Address City"
|
8468 |
msgid "City:"
|
8469 |
msgstr ""
|
8470 |
|
8471 |
+
#: includes/admin/payments/view-order-details.php:748
|
8472 |
msgctxt "Zip / Postal code of address"
|
8473 |
msgid "Zip / Postal Code:"
|
8474 |
msgstr ""
|
8475 |
|
8476 |
+
#: includes/admin/payments/view-order-details.php:755
|
8477 |
msgctxt "Address country"
|
8478 |
msgid "Country:"
|
8479 |
msgstr ""
|
8480 |
|
8481 |
+
#: includes/admin/payments/view-order-details.php:775
|
8482 |
msgctxt "State / province of address"
|
8483 |
msgid "State / Province:"
|
8484 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Contributors: easydigitaldownloads, mordauk, sunnyratilal, chriscct7, section214
|
|
5 |
Donate link: https://easydigitaldownloads.com/donate/
|
6 |
Tags: ecommerce, e-commerce, sell, downloads, store, paypal, checkout, shop
|
7 |
Requires at least: 4.4
|
8 |
-
Tested up to: 5.
|
9 |
-
Stable Tag: 2.9.
|
10 |
License: GNU Version 2 or Any Later Version
|
11 |
|
12 |
The easiest way to sell digital products with WordPress.
|
@@ -188,6 +188,16 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
|
|
188 |
9. Checkout screen
|
189 |
|
190 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
= 2.9.12, March 26, 2019 =
|
192 |
* Fix: Limit PayPal PDT verification to purchase sessions.
|
193 |
* Fix: Discount start times were not accounting for GMT offsets.
|
5 |
Donate link: https://easydigitaldownloads.com/donate/
|
6 |
Tags: ecommerce, e-commerce, sell, downloads, store, paypal, checkout, shop
|
7 |
Requires at least: 4.4
|
8 |
+
Tested up to: 5.2
|
9 |
+
Stable Tag: 2.9.13
|
10 |
License: GNU Version 2 or Any Later Version
|
11 |
|
12 |
The easiest way to sell digital products with WordPress.
|
188 |
9. Checkout screen
|
189 |
|
190 |
== Changelog ==
|
191 |
+
|
192 |
+
= 2.9.13, May 7, 2019 =
|
193 |
+
* Fix: An error was being logged when using API V2 to get products by category.
|
194 |
+
* Fix: Corrected an issue with multisite on versions of WordPress greater than 5.0.
|
195 |
+
* Fix: Multiple improvements with the EDD_License handler.
|
196 |
+
* Fix: Made it possible to add products to product-less payments.
|
197 |
+
* Fix: Fixed the link to filter file download logs by customer.
|
198 |
+
* Fix: Improved strength of file download link hashes.
|
199 |
+
* Fix: Improved local file location detection.
|
200 |
+
|
201 |
= 2.9.12, March 26, 2019 =
|
202 |
* Fix: Limit PayPal PDT verification to purchase sessions.
|
203 |
* Fix: Discount start times were not accounting for GMT offsets.
|