Changeset 3078938
- Timestamp:
- 04/29/2024 06:38:27 PM (20 months ago)
- Location:
- easy-digital-downloads
- Files:
-
- 2 added
- 32 edited
- 1 copied
-
tags/3.2.12 (copied) (copied from easy-digital-downloads/trunk)
-
tags/3.2.12/assets/js/edd-admin-settings.js (modified) (1 diff)
-
tags/3.2.12/easy-digital-downloads.php (modified) (2 diffs)
-
tags/3.2.12/i18n/states-in.php (modified) (1 diff)
-
tags/3.2.12/includes/admin/reporting/export/class-batch-export.php (modified) (1 diff)
-
tags/3.2.12/includes/admin/reporting/export/export-actions.php (modified) (1 diff)
-
tags/3.2.12/includes/admin/settings/register-settings.php (modified) (1 diff)
-
tags/3.2.12/includes/class-easy-digital-downloads.php (modified) (2 diffs)
-
tags/3.2.12/includes/class-edd-cron.php (modified) (2 diffs)
-
tags/3.2.12/includes/emails/functions.php (modified) (1 diff)
-
tags/3.2.12/includes/emails/recapture.php (added)
-
tags/3.2.12/includes/gateways/stripe/includes/webhooks.php (modified) (1 diff)
-
tags/3.2.12/includes/misc-functions.php (modified) (1 diff)
-
tags/3.2.12/includes/orders/classes/class-refund-validator.php (modified) (1 diff)
-
tags/3.2.12/languages/easy-digital-downloads.pot (modified) (26 diffs)
-
tags/3.2.12/readme.txt (modified) (7 diffs)
-
tags/3.2.12/src/Admin/Onboarding/Steps/Products.php (modified) (3 diffs)
-
tags/3.2.12/src/Admin/Settings/Tabs/Gateways.php (modified) (2 diffs)
-
trunk/assets/js/edd-admin-settings.js (modified) (1 diff)
-
trunk/easy-digital-downloads.php (modified) (2 diffs)
-
trunk/i18n/states-in.php (modified) (1 diff)
-
trunk/includes/admin/reporting/export/class-batch-export.php (modified) (1 diff)
-
trunk/includes/admin/reporting/export/export-actions.php (modified) (1 diff)
-
trunk/includes/admin/settings/register-settings.php (modified) (1 diff)
-
trunk/includes/class-easy-digital-downloads.php (modified) (2 diffs)
-
trunk/includes/class-edd-cron.php (modified) (2 diffs)
-
trunk/includes/emails/functions.php (modified) (1 diff)
-
trunk/includes/emails/recapture.php (added)
-
trunk/includes/gateways/stripe/includes/webhooks.php (modified) (1 diff)
-
trunk/includes/misc-functions.php (modified) (1 diff)
-
trunk/includes/orders/classes/class-refund-validator.php (modified) (1 diff)
-
trunk/languages/easy-digital-downloads.pot (modified) (26 diffs)
-
trunk/readme.txt (modified) (7 diffs)
-
trunk/src/Admin/Onboarding/Steps/Products.php (modified) (3 diffs)
-
trunk/src/Admin/Settings/Tabs/Gateways.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-digital-downloads/tags/3.2.12/assets/js/edd-admin-settings.js
r3036940 r3078938 1 !function(e){var t={};function n(a){if(t[a])return t[a].exports;var d=t[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var d in e)n.d(a,d,function(t){return e[t]}.bind(null,d));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=318)}({1:function(e,t){e.exports=jQuery},291:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var a=function(){ e.post(ajaxurl,{action:"edd_recapture_remote_install"},(function(e){!e.success&&e.data&&confirm(e.data.error)?location.reload():window.location.href="https://recapture.io/register"}))}}).call(this,n(1))},318:function(e,t,n){"use strict";n.r(t),function(e,t){var a=n(291),d=(n(319),{init:function(){this.general(),this.misc(),this.gateways(),this.emails()},general:function(){var t,n=e(".edd-color-picker");n.length&&n.wpColorPicker(),window.formfield="",e(document.body).on("click",".edd_settings_upload_button",(function(n){n.preventDefault();var a=e(this);window.formfield=e(a.data("input")),t||((t=wp.media.frames.file_frame=wp.media({title:a.data("uploader_title"),library:{type:"image"},button:{text:a.data("uploader_button_text")},multiple:!1})).on("menu:render:default",(function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.unset("playlist"),e.unset("video-playlist"),e.set({})})),t.on("select",(function(){t.state().get("selection").each((function(e,t){e=e.toJSON(),window.formfield.val(e.url)}))}))),t.open()})),window.formfield=""},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),n=t.parent().parent().next(),a=e('input[name="edd_settings[allow_tracking]"]');"direct"===t.val()&&(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)),t.on("change",(function(){"direct"===e(this).val()?(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)):(n.find("input").prop("disabled",!1),n.css("opacity","1"))})),a.on("change",(function(){e(".allow_tracking.edd-heart").toggleClass("edd-hidden")}))},gateways:function(){e('#edd-payment-gateways input[type="checkbox"]').on("change",(function(){var t=e(this).data("gateway-key"),n=e("#edd_settings\\[default_gateway\\]"),a=n.find('option[value="'+t+'"]');a.prop("disabled",(function(e,t){return!t})),a.prop("selected")&&a.prop("selected",!1),n.trigger("chosen:updated")}))},emails:function(){e("#edd-recapture-connect").on("click",(function(t){t.preventDefault(),e(this).html(edd_vars.wait+' <span class="edd-loading"></span>'),document.body.style.cursor="wait",Object(a.a)()}));var t=e('select[name="edd_settings[email_summary_recipient]"]'),n=t.val(),d=e('textarea[name="edd_settings[email_summary_custom_recipients]"]').parents("tr"),o=e("#edd-send-test-summary-save-changes-notice"),s=e("#edd-send-test-summary"),i=e("#edd-send-test-summary-notice");t.on("change",(function(){d.toggleClass("hidden"),s.removeClass("hidden updated-message"),i.empty(),o.empty(),n!==t.val()&&(s.addClass("hidden"),o.html('<div class="notice notice-info"><p>'+edd_vars.test_email_save_changes+"</p></div>"))})),s.on("click",(function(t){t.preventDefault(),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{action:"edd_send_test_email_summary"},beforeSend:function(){i.empty(),s.addClass("updating-message").prop("disabled",!0)},success:function(e){"error"==e.status?i.html('<div class="updated '+e.status+'"><p>'+e.message+"</p></div>"):(s.addClass("updated-message"),setTimeout((function(){s.removeClass("updated-message")}),3e3))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){s.removeClass("updating-message").prop("disabled",!1)}))}))}});t(document).ready((function(e){d.init()}))}.call(this,n(1),n(1))},319:function(e,t,n){(function(e){e(document).ready((function(t){if("undefined"!=typeof eddPayPalConnectVars){var n=document.getElementById("edd-paypal-commerce-errors");if(n&&n.length){for(;n.firstChild;)n.removeChild(n.firstChild);n.classList.remove("notice notice-error")}if(eddPayPalConnectVars.isConnected){var a=document.getElementById("edd-paypal-commerce-reconnect");a&&a.addEventListener("click",(function(e){e.preventDefault();var n=t("#edd-paypal-commerce-errors");n.empty().removeClass("notice notice-error"),a.classList.add("updating-message"),a.disabled=!0,t.post(ajaxurl,{action:"edd_paypal_commerce_reconnect",_ajax_nonce:a.dataset.nonce}).done((function(){})).fail((function(e){console.log("Reconnect failure",e.data),a.classList.remove("updating-message"),a.disabled=!1,n.html("<p>"+e.data+"</p>").addClass("notice notice-error")}))})),function e(){var n=document.getElementById("edd-paypal-commerce-connect-wrap");n&&t.post(ajaxurl,{action:"edd_paypal_commerce_get_account_info",_ajax_nonce:n.getAttribute("data-nonce")},(function(a){var d="<p>"+eddPayPalConnectVars.defaultError+"</p>";a.success?(d=a.data.account_status,a.data.actions&&a.data.actions.length&&(d+='<p class="edd-paypal-connect-actions">'+a.data.actions.join(" ")+"</p>"),a.data.disconnect_links&&a.data.disconnect_links.length&&(document.getElementById("edd-paypal-disconnect").innerHTML=a.data.disconnect_links.join(" "))):a.data&&a.data.message&&(d=a.data.message),n.innerHTML=d,n.classList.remove("notice-success","notice-warning","notice-error","loading");var o=a.success&&a.data.status?"notice-"+a.data.status:"notice-error";n.classList.add(o);var s,i=document.getElementById("edd-paypal-commerce-get-help");"success"===a.data.status?(i.classList.add("edd-hidden"),i.classList.remove("button","button-secondary")):(i.classList.remove("edd-hidden"),i.classList.add("button","button-secondary")),(s=document.querySelectorAll(".edd-paypal-connect-action"))&&s.length&&s.forEach((function(n){n.addEventListener("click",(function(n){n.preventDefault();var a=n.target;a.disabled=!0,a.classList.add("updating-message");var d=document.getElementById("edd-paypal-commerce-connect-wrap");d&&d.length&&d.remove(),t.post(ajaxurl,{action:a.dataset.action,_ajax_nonce:a.dataset.nonce}).done((function(){e()})).fail((function(e){console.log("Failure",e.data),a.disabled=!1,a.classList.remove("updating-message"),d.html("<p>"+e.data+"</p>").addClass("edd-paypal-actions-error-wrap")}))}))}))}))}()}else{if(document.getElementById("edd-paypal-commerce-link")){var d=document.createElement("script");d.id="edd-paypal-commerce-onboarding",d.src="https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js",document.body.appendChild(d),setTimeout((function(){"undefined"!==window.PAYPAL.apps.Signup&&window.PAYPAL.apps.Signup.render()}),1e3)}window.eddPayPalOnboardingCallback=function(t,n){var a=document.getElementById("edd-paypal-commerce-link"),d=document.getElementById("edd-paypal-commerce-errors");e.post(ajaxurl,{action:"edd_paypal_commerce_get_access_token",auth_code:t,share_id:n,_ajax_nonce:a.dataset.nonce}).done((function(){a.classList.add("disabled","updating-message"),a.disabled=!0})).fail((function(e){d.innerHTML="<p>"+e.data+"</p>",d.classList.add("notice","notice-error");var t=document.getElementById("edd-paypal-commerce-get-help");t.classList.remove("edd-hidden"),t.classList.add("button","button-secondary")}))}}}}))}).call(this,n(1))}});1 !function(e){var t={};function n(a){if(t[a])return t[a].exports;var d=t[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var d in e)n.d(a,d,function(t){return e[t]}.bind(null,d));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=318)}({1:function(e,t){e.exports=jQuery},291:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var a=function(){var t={action:"edd_recapture_remote_install",nonce:document.getElementById("edd-recapture-connect-nonce").value};e.post(ajaxurl,t,(function(e){!e.success&&e.data&&confirm(e.data.error)?location.reload():window.location.href="https://recapture.io/register"}))}}).call(this,n(1))},318:function(e,t,n){"use strict";n.r(t),function(e,t){var a=n(291),d=(n(319),{init:function(){this.general(),this.misc(),this.gateways(),this.emails()},general:function(){var t,n=e(".edd-color-picker");n.length&&n.wpColorPicker(),window.formfield="",e(document.body).on("click",".edd_settings_upload_button",(function(n){n.preventDefault();var a=e(this);window.formfield=e(a.data("input")),t||((t=wp.media.frames.file_frame=wp.media({title:a.data("uploader_title"),library:{type:"image"},button:{text:a.data("uploader_button_text")},multiple:!1})).on("menu:render:default",(function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.unset("playlist"),e.unset("video-playlist"),e.set({})})),t.on("select",(function(){t.state().get("selection").each((function(e,t){e=e.toJSON(),window.formfield.val(e.url)}))}))),t.open()})),window.formfield=""},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),n=t.parent().parent().next(),a=e('input[name="edd_settings[allow_tracking]"]');"direct"===t.val()&&(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)),t.on("change",(function(){"direct"===e(this).val()?(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)):(n.find("input").prop("disabled",!1),n.css("opacity","1"))})),a.on("change",(function(){e(".allow_tracking.edd-heart").toggleClass("edd-hidden")}))},gateways:function(){e('#edd-payment-gateways input[type="checkbox"]').on("change",(function(){var t=e(this).data("gateway-key"),n=e("#edd_settings\\[default_gateway\\]"),a=n.find('option[value="'+t+'"]');a.prop("disabled",(function(e,t){return!t})),a.prop("selected")&&a.prop("selected",!1),n.trigger("chosen:updated")}))},emails:function(){e("#edd-recapture-connect").on("click",(function(t){t.preventDefault(),e(this).html(edd_vars.wait+' <span class="edd-loading"></span>'),document.body.style.cursor="wait",Object(a.a)()}));var t=e('select[name="edd_settings[email_summary_recipient]"]'),n=t.val(),d=e('textarea[name="edd_settings[email_summary_custom_recipients]"]').parents("tr"),o=e("#edd-send-test-summary-save-changes-notice"),s=e("#edd-send-test-summary"),c=e("#edd-send-test-summary-notice");t.on("change",(function(){d.toggleClass("hidden"),s.removeClass("hidden updated-message"),c.empty(),o.empty(),n!==t.val()&&(s.addClass("hidden"),o.html('<div class="notice notice-info"><p>'+edd_vars.test_email_save_changes+"</p></div>"))})),s.on("click",(function(t){t.preventDefault(),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{action:"edd_send_test_email_summary"},beforeSend:function(){c.empty(),s.addClass("updating-message").prop("disabled",!0)},success:function(e){"error"==e.status?c.html('<div class="updated '+e.status+'"><p>'+e.message+"</p></div>"):(s.addClass("updated-message"),setTimeout((function(){s.removeClass("updated-message")}),3e3))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){s.removeClass("updating-message").prop("disabled",!1)}))}))}});t(document).ready((function(e){d.init()}))}.call(this,n(1),n(1))},319:function(e,t,n){(function(e){e(document).ready((function(t){if("undefined"!=typeof eddPayPalConnectVars){var n=document.getElementById("edd-paypal-commerce-errors");if(n&&n.length){for(;n.firstChild;)n.removeChild(n.firstChild);n.classList.remove("notice notice-error")}if(eddPayPalConnectVars.isConnected){var a=document.getElementById("edd-paypal-commerce-reconnect");a&&a.addEventListener("click",(function(e){e.preventDefault();var n=t("#edd-paypal-commerce-errors");n.empty().removeClass("notice notice-error"),a.classList.add("updating-message"),a.disabled=!0,t.post(ajaxurl,{action:"edd_paypal_commerce_reconnect",_ajax_nonce:a.dataset.nonce}).done((function(){})).fail((function(e){console.log("Reconnect failure",e.data),a.classList.remove("updating-message"),a.disabled=!1,n.html("<p>"+e.data+"</p>").addClass("notice notice-error")}))})),function e(){var n=document.getElementById("edd-paypal-commerce-connect-wrap");n&&t.post(ajaxurl,{action:"edd_paypal_commerce_get_account_info",_ajax_nonce:n.getAttribute("data-nonce")},(function(a){var d="<p>"+eddPayPalConnectVars.defaultError+"</p>";a.success?(d=a.data.account_status,a.data.actions&&a.data.actions.length&&(d+='<p class="edd-paypal-connect-actions">'+a.data.actions.join(" ")+"</p>"),a.data.disconnect_links&&a.data.disconnect_links.length&&(document.getElementById("edd-paypal-disconnect").innerHTML=a.data.disconnect_links.join(" "))):a.data&&a.data.message&&(d=a.data.message),n.innerHTML=d,n.classList.remove("notice-success","notice-warning","notice-error","loading");var o=a.success&&a.data.status?"notice-"+a.data.status:"notice-error";n.classList.add(o);var s,c=document.getElementById("edd-paypal-commerce-get-help");"success"===a.data.status?(c.classList.add("edd-hidden"),c.classList.remove("button","button-secondary")):(c.classList.remove("edd-hidden"),c.classList.add("button","button-secondary")),(s=document.querySelectorAll(".edd-paypal-connect-action"))&&s.length&&s.forEach((function(n){n.addEventListener("click",(function(n){n.preventDefault();var a=n.target;a.disabled=!0,a.classList.add("updating-message");var d=document.getElementById("edd-paypal-commerce-connect-wrap");d&&d.length&&d.remove(),t.post(ajaxurl,{action:a.dataset.action,_ajax_nonce:a.dataset.nonce}).done((function(){e()})).fail((function(e){console.log("Failure",e.data),a.disabled=!1,a.classList.remove("updating-message"),d.html("<p>"+e.data+"</p>").addClass("edd-paypal-actions-error-wrap")}))}))}))}))}()}else{if(document.getElementById("edd-paypal-commerce-link")){var d=document.createElement("script");d.id="edd-paypal-commerce-onboarding",d.src="https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js",document.body.appendChild(d),setTimeout((function(){"undefined"!==window.PAYPAL.apps.Signup&&window.PAYPAL.apps.Signup.render()}),1e3)}window.eddPayPalOnboardingCallback=function(t,n){var a=document.getElementById("edd-paypal-commerce-link"),d=document.getElementById("edd-paypal-commerce-errors");e.post(ajaxurl,{action:"edd_paypal_commerce_get_access_token",auth_code:t,share_id:n,_ajax_nonce:a.dataset.nonce}).done((function(){a.classList.add("disabled","updating-message"),a.disabled=!0})).fail((function(e){d.innerHTML="<p>"+e.data+"</p>",d.classList.add("notice","notice-error");var t=document.getElementById("edd-paypal-commerce-get-help");t.classList.remove("edd-hidden"),t.classList.add("button","button-secondary")}))}}}}))}).call(this,n(1))}}); -
easy-digital-downloads/tags/3.2.12/easy-digital-downloads.php
r3061317 r3078938 6 6 * Author: Easy Digital Downloads 7 7 * Author URI: https://easydigitaldownloads.com 8 * Version: 3.2.1 18 * Version: 3.2.12 9 9 * Text Domain: easy-digital-downloads 10 10 * Domain Path: /languages … … 28 28 * @category Core 29 29 * @author Easy Digital Downloads 30 * @version 3.2.1 130 * @version 3.2.12 31 31 */ 32 32 -
easy-digital-downloads/tags/3.2.12/i18n/states-in.php
r2940530 r3078938 36 36 'AN' => __( 'Andaman and Nicobar Islands', 'easy-digital-downloads' ), 37 37 'CH' => __( 'Chandigarh', 'easy-digital-downloads' ), 38 'DN' => __( 'Dad arand Nagar Haveli', 'easy-digital-downloads' ),38 'DN' => __( 'Dadra and Nagar Haveli', 'easy-digital-downloads' ), 39 39 'DD' => __( 'Daman and Diu', 'easy-digital-downloads' ), 40 40 'DL' => __( 'Delhi', 'easy-digital-downloads' ), -
easy-digital-downloads/tags/3.2.12/includes/admin/reporting/export/class-batch-export.php
r2990247 r3078938 134 134 public function __construct( $_step = 1 ) { 135 135 136 $ upload_dir = wp_upload_dir();136 $exports_dir = edd_get_exports_dir(); 137 137 $this->filetype = '.csv'; 138 $this->filename = 'edd-' . $this->export_type . $this->filetype; 139 $this->file = trailingslashit( $upload_dir['basedir'] ) . $this->filename; 140 141 if ( ! is_writeable( $upload_dir['basedir'] ) ) { 138 $file_date = date( 'Y-m-d' ); 139 $file_hash = substr( wp_hash( 'edd-' . $this->export_type . '-export', 'nonce' ), 0, 8 ); 140 $this->filename = sprintf( 141 'edd-%1$s-export-%2$s-%3$s%4$s', 142 $this->export_type, 143 $file_date, 144 $file_hash, 145 $this->filetype 146 ); 147 $this->file = trailingslashit( $exports_dir ) . $this->filename; 148 149 if ( ! is_writeable( $exports_dir ) ) { 142 150 $this->is_writable = false; 143 151 } -
easy-digital-downloads/tags/3.2.12/includes/admin/reporting/export/export-actions.php
r2964278 r3078938 264 264 265 265 /** 266 * Register the taxed orders report batch exporter.266 * Register the taxed customers report batch exporter. 267 267 * 268 268 * @since 3.0 -
easy-digital-downloads/tags/3.2.12/includes/admin/settings/register-settings.php
r3036940 r3078938 1812 1812 <?php if ( current_user_can( 'install_plugins' ) ) : ?> 1813 1813 <p> 1814 <button type="button" id="edd-recapture-connect" class="button button-primary"><?php esc_html_e( 'Connect with Recapture', 'easy-digital-downloads' ); ?> 1814 <button type="button" id="edd-recapture-connect" class="button button-primary"> 1815 <?php esc_html_e( 'Connect with Recapture', 'easy-digital-downloads' ); ?> 1815 1816 </button> 1817 <?php wp_nonce_field( 'edd-recapture-connect', 'edd-recapture-connect-nonce' ); ?> 1816 1818 </p> 1817 1819 <?php endif; ?> -
easy-digital-downloads/tags/3.2.12/includes/class-easy-digital-downloads.php
r3061317 r3078938 371 371 // Plugin version. 372 372 if ( ! defined( 'EDD_VERSION' ) ) { 373 define( 'EDD_VERSION', '3.2.1 1' );373 define( 'EDD_VERSION', '3.2.12' ); 374 374 } 375 375 … … 730 730 require_once EDD_PLUGIN_DIR . 'includes/emails/class-edd-email-tags.php'; 731 731 require_once EDD_PLUGIN_DIR . 'includes/emails/functions.php'; 732 require_once EDD_PLUGIN_DIR . 'includes/emails/recapture.php'; 732 733 require_once EDD_PLUGIN_DIR . 'includes/emails/tags.php'; 733 734 require_once EDD_PLUGIN_DIR . 'includes/emails/tags-inserter.php'; -
easy-digital-downloads/tags/3.2.12/includes/class-edd-cron.php
r2756001 r3078938 30 30 add_filter( 'cron_schedules', array( $this, 'add_schedules' ) ); 31 31 add_action( 'wp', array( $this, 'schedule_events' ) ); 32 add_action( 'edd_daily_scheduled_events', array( $this, 'exports_cleanup' ) ); 32 33 } 33 34 … … 87 88 } 88 89 90 /** 91 * Cleanup after ourselves during exports. 92 * 93 * @since 3.2.12 94 * 95 * @return void 96 */ 97 public function exports_cleanup() { 98 if ( class_exists( 'EDD\Cron\Loader' ) ) { 99 return; 100 } 101 102 $exports_dir = edd_get_exports_dir(); 103 $files = scandir( $exports_dir ); 104 105 if ( ! empty( $files ) ) { 106 foreach ( $files as $file ) { 107 if ( '.' === $file[0] ) { 108 continue; 109 } 110 111 $full_path = trailingslashit( $exports_dir ) . $file; 112 113 if ( is_dir( $full_path ) || ( 'index.php' === basename( $full_path ) || 'index.html' === basename( $full_path ) ) ) { 114 continue; 115 } 116 117 $modified_time = filemtime( $full_path ); 118 119 // If the file hasn't been modified in the last 2 hours, delete it. 120 if ( time() - $modified_time > HOUR_IN_SECONDS * 2 ) { 121 unlink( $full_path ); 122 } 123 } 124 } 125 126 // Also remove any older exports in the uploads directory. 127 $uploads_dir = wp_upload_dir(); 128 $files = scandir( $uploads_dir['basedir'] ); 129 130 if ( ! empty( $files ) ) { 131 foreach ( $files as $file ) { 132 if ( '.' === $file[0] ) { 133 continue; 134 } 135 136 $full_path = trailingslashit( $uploads_dir['basedir'] ) . $file; 137 138 if ( is_dir( $full_path ) || ( 'index.php' === basename( $full_path ) || 'index.html' === basename( $full_path ) ) ) { 139 continue; 140 } 141 142 // If the filename doesn't start with `edd-` don't delete it. 143 if ( false === strpos( $file, 'edd-' ) ) { 144 continue; 145 } 146 147 // If the file is not a .csv, don't delete it. 148 if ( '.csv' !== substr( $file, -4 ) ) { 149 continue; 150 } 151 152 $modified_time = filemtime( $full_path ); 153 154 // If the file hasn't been modified in the last 2 hours, delete it. 155 if ( time() - $modified_time > HOUR_IN_SECONDS * 2 ) { 156 unlink( $full_path ); 157 } 158 } 159 } 160 } 89 161 } 90 $edd_cron = new EDD_Cron ;162 $edd_cron = new EDD_Cron(); -
easy-digital-downloads/tags/3.2.12/includes/emails/functions.php
r2973984 r3078938 47 47 return (bool) apply_filters( 'edd_admin_notices_disabled', $ret, $payment_id ); 48 48 } 49 50 /**51 * Handle installation and connection for Recapture via ajax52 *53 * @since 2.10.254 */55 function edd_recapture_remote_install_handler () {56 57 if ( ! current_user_can( 'manage_shop_settings' ) || ! current_user_can( 'install_plugins' ) ) {58 wp_send_json_error( array(59 'error' => __( 'You do not have permission to do this.', 'easy-digital-downloads' )60 ) );61 }62 63 include_once ABSPATH . 'wp-admin/includes/plugin-install.php';64 include_once ABSPATH . 'wp-admin/includes/file.php';65 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';66 67 $plugins = get_plugins();68 69 if( ! array_key_exists( 'recapture-for-edd/recapture.php', $plugins ) ) {70 71 /*72 * Use the WordPress Plugins API to get the plugin download link.73 */74 $api = plugins_api( 'plugin_information', array(75 'slug' => 'recapture-for-edd',76 ) );77 78 if ( is_wp_error( $api ) ) {79 wp_send_json_error( array(80 'error' => $api->get_error_message(),81 'debug' => $api82 ) );83 }84 85 /*86 * Use the AJAX Upgrader skin to quietly install the plugin.87 */88 $upgrader = new Plugin_Upgrader( new WP_Ajax_Upgrader_Skin() );89 $install = $upgrader->install( $api->download_link );90 if ( is_wp_error( $install ) ) {91 wp_send_json_error( array(92 'error' => $install->get_error_message(),93 'debug' => $api94 ) );95 }96 97 $activated = activate_plugin( $upgrader->plugin_info() );98 99 } else {100 101 $activated = activate_plugin( 'recapture-for-edd/recapture.php' );102 103 }104 105 /*106 * Final check to see if Recapture is available.107 */108 if ( is_wp_error( $activated ) ) {109 wp_send_json_error( array(110 'error' => __( 'Something went wrong. Recapture for EDD was not installed correctly.', 'easy-digital-downloads' )111 ) );112 }113 114 wp_send_json_success();115 }116 add_action( 'wp_ajax_edd_recapture_remote_install', 'edd_recapture_remote_install_handler' );117 118 /**119 * Maybe adds a notice to abandoned payments if Recapture isn't installed.120 *121 * @since 2.10.2122 *123 * @param int $payment_id The ID of the abandoned payment, for which a Recapture notice is being thrown.124 */125 function maybe_add_recapture_notice_to_abandoned_payment( $payment_id ) {126 127 if ( ! class_exists( 'Recapture' )128 && 'abandoned' === edd_get_payment_status( $payment_id )129 && ! get_user_meta( get_current_user_id(), '_edd_try_recapture_dismissed', true )130 ) {131 ?>132 <div class="notice notice-warning recapture-notice">133 <p>134 <?php135 echo wp_kses_post(136 sprintf(137 /* Translators: %1$s - <strong> tag, %2$s - </strong> tag, %3$s - <a> tag, %4$s - </a> tag */138 __( '%1$sRecover abandoned purchases like this one.%2$s %3$sTry Recapture for free%4$s.', 'easy-digital-downloads' ),139 '<strong>',140 '</strong>',141 '<a href="https://recapture.io/abandoned-carts-easy-digital-downloads" rel="noopener" target="_blank">',142 '</a>'143 )144 );145 ?>146 </p>147 <?php148 echo wp_kses_post(149 sprintf(150 /* Translators: %1$s - Opening anchor tag, %2$s - The url to dismiss the ajax notice, %3$s - Complete the opening of the anchor tag, %4$s - Open span tag, %4$s - Close span tag */151 __( '%1$s %2$s %3$s %4$s Dismiss this notice. %5$s', 'easy-digital-downloads' ),152 '<a href="',153 esc_url(154 wp_nonce_url(155 add_query_arg(156 array(157 'edd_action' => 'dismiss_notices',158 'edd_notice' => 'try_recapture',159 )160 ),161 'edd_notice_nonce'162 )163 ),164 '" type="button" class="notice-dismiss">',165 '<span class="screen-reader-text">',166 '</span>167 </a>'168 )169 );170 ?>171 </div>172 <?php173 }174 }175 add_action( 'edd_view_order_details_before', 'maybe_add_recapture_notice_to_abandoned_payment' ); -
easy-digital-downloads/tags/3.2.12/includes/gateways/stripe/includes/webhooks.php
r2973984 r3078938 73 73 // If this was completely refunded, set the status to refunded. 74 74 if ( $charge->refunded ) { 75 $refund_id = edd_refund_order( $order->id ); 76 if ( $refund_id ) { 75 $refund_id = false; 76 if ( edd_is_order_refundable( $order->id ) ) { 77 $refund_id = edd_refund_order( $order->id ); 78 } else { 79 $refunds = edd_get_orders( 80 array( 81 'type' => 'refund', 82 'parent' => $order->id, 83 ) 84 ); 85 if ( ! empty( $refunds ) ) { 86 $refund_id = $refunds[0]->id; 87 } 88 } 89 if ( $refund_id && ! is_wp_error( $refund_id ) ) { 77 90 edd_add_order_transaction( 78 91 array( -
easy-digital-downloads/tags/3.2.12/includes/misc-functions.php
r2964278 r3078938 860 860 861 861 /** 862 * Retrieve the absolute path to the file export directory without the trailing slash. 863 * 864 * @since 3.2.12 865 * 866 * @return string $path Absolute path to the EDD export directory 867 */ 868 function edd_get_exports_dir() { 869 $wp_upload_dir = wp_upload_dir(); 870 $edd_dir = edd_get_uploads_base_dir(); 871 $path = $wp_upload_dir['basedir'] . '/' . $edd_dir . '/exports'; 872 $exports_dir = apply_filters( 'edd_get_exports_dir', $path ); 873 874 // Make sure the directory exists. 875 wp_mkdir_p( $exports_dir ); 876 877 // Return, possibly filtered. 878 return $exports_dir; 879 } 880 881 /** 862 882 * Retrieve the URL to the file upload directory without the trailing slash 863 883 * -
easy-digital-downloads/tags/3.2.12/includes/orders/classes/class-refund-validator.php
r2756001 r3078938 388 388 * %3$s - maximum amount allowed for refund 389 389 */ 390 __( 'The maximum refund % s for the adjustment "%s" is %s.', 'easy-digital-downloads' ),390 __( 'The maximum refund %1$s for the adjustment "%2$s" is %3$s.', 'easy-digital-downloads' ), 391 391 $column_name, 392 392 $original_item->description, -
easy-digital-downloads/tags/3.2.12/languages/easy-digital-downloads.pot
r3061317 r3078938 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Easy Digital Downloads 3.2.1 1\n"5 "Project-Id-Version: Easy Digital Downloads 3.2.12\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-digital-downloads\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 3-29T18:25:38+00:00\n"12 "POT-Creation-Date: 2024-04-29T18:21:19+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 2514 2514 2515 2515 #: i18n/states-in.php:38 2516 msgid "Dad arand Nagar Haveli"2516 msgid "Dadra and Nagar Haveli" 2517 2517 msgstr "" 2518 2518 … … 5773 5773 #: includes/admin/reporting/class-export.php:188 5774 5774 #: includes/admin/reporting/class-gateway-error-logs-list-table.php:109 5775 #: includes/admin/reporting/export/class-batch-export.php:1 585775 #: includes/admin/reporting/export/class-batch-export.php:166 5776 5776 #: includes/admin/reporting/export/export-actions.php:24 5777 5777 #: includes/admin/tools.php:1161 … … 6359 6359 #: includes/admin/customers/class-customer-table.php:127 6360 6360 #: includes/admin/payments/orders.php:1084 6361 #: includes/misc-functions.php:14 366361 #: includes/misc-functions.php:1456 6362 6362 #: includes/payments/functions.php:537 6363 6363 msgid "Pending" … … 6370 6370 #: includes/admin/discounts/edit-discount.php:287 6371 6371 #: includes/class-edd-discount.php:705 6372 #: includes/misc-functions.php:14 316372 #: includes/misc-functions.php:1451 6373 6373 #: src/Admin/Promos/About.php:865 6374 6374 msgid "Active" … … 6553 6553 #: includes/admin/discounts/edit-discount.php:288 6554 6554 #: includes/class-edd-discount.php:699 6555 #: includes/misc-functions.php:14 326555 #: includes/misc-functions.php:1452 6556 6556 #: src/Admin/Promos/About.php:871 6557 6557 msgid "Inactive" … … 6623 6623 #: includes/api/class-edd-api.php:1978 6624 6624 #: includes/class-edd-license-handler.php:478 6625 #: includes/emails/recapture.php:24 6625 6626 #: includes/user-functions.php:958 6626 6627 msgid "Nonce verification failed." … … 7793 7794 7794 7795 #: includes/admin/downloads/metabox.php:522 7795 #: src/Admin/Onboarding/Steps/Products.php:1 147796 #: src/Admin/Onboarding/Steps/Products.php:120 7796 7797 msgid "Add New Price" 7797 7798 msgstr "" … … 7811 7812 msgstr "" 7812 7813 7813 #. translators: %1$s is the remove link, %2$s is the screen reader text.7814 7814 #: includes/admin/downloads/metabox.php:589 7815 7815 #: includes/admin/downloads/metabox.php:847 … … 9404 9404 9405 9405 #: includes/admin/reporting/class-export.php:188 9406 #: includes/admin/reporting/export/class-batch-export.php:1 589406 #: includes/admin/reporting/export/class-batch-export.php:166 9407 9407 #: includes/admin/tools/class-edd-tools-recount-customer-stats.php:114 9408 9408 #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:157 … … 10470 10470 msgstr "" 10471 10471 10472 #: includes/admin/settings/register-settings.php:181 410472 #: includes/admin/settings/register-settings.php:1815 10473 10473 msgid "Connect with Recapture" 10474 10474 msgstr "" 10475 10475 10476 10476 #. translators: Tax rate country code 10477 #: includes/admin/settings/register-settings.php:184 710477 #: includes/admin/settings/register-settings.php:1849 10478 10478 msgid "Duplicate tax rates are not allowed. Please deactivate the existing %s tax rate before adding or activating another." 10479 10479 msgstr "" 10480 10480 10481 #: includes/admin/settings/register-settings.php:18 4810481 #: includes/admin/settings/register-settings.php:1850 10482 10482 msgid "Please select a country." 10483 10483 msgstr "" 10484 10484 10485 #: includes/admin/settings/register-settings.php:18 4910485 #: includes/admin/settings/register-settings.php:1851 10486 10486 msgid "Please enter a tax rate greater than 0." 10487 10487 msgstr "" 10488 10488 10489 #: includes/admin/settings/register-settings.php:185 010489 #: includes/admin/settings/register-settings.php:1852 10490 10490 msgid "Are you sure you want to add a 0% tax rate?" 10491 10491 msgstr "" … … 10857 10857 10858 10858 #: includes/admin/tools.php:915 10859 #: src/Admin/Onboarding/Steps/Products.php:5 110859 #: src/Admin/Onboarding/Steps/Products.php:57 10860 10860 msgid "Product Image" 10861 10861 msgstr "" … … 12289 12289 msgstr "" 12290 12290 12291 #. Translators: %s is the name of the download that was added to the cart.12292 12291 #: includes/cart/template.php:311 12293 12292 msgid "Checkout." … … 13146 13145 msgstr "" 13147 13146 13148 #: includes/class-edd-cron.php:4 613147 #: includes/class-edd-cron.php:47 13149 13148 msgid "Once Weekly" 13150 13149 msgstr "" … … 13161 13160 #: includes/class-edd-discount.php:696 13162 13161 #: includes/gateways/stripe/includes/template-functions.php:377 13163 #: includes/misc-functions.php:14 3313162 #: includes/misc-functions.php:1453 13164 13163 msgid "Expired" 13165 13164 msgstr "" … … 13704 13703 #: includes/deprecated-functions.php:1591 13705 13704 #: includes/deprecated-functions.php:1667 13706 #: includes/emails/ functions.php:5913705 #: includes/emails/recapture.php:16 13707 13706 msgid "You do not have permission to do this." 13708 13707 msgstr "" … … 13720 13719 #. Translators: %1$s - Opening anchor tag, %2$s - The url to dismiss the ajax notice, %3$s - Complete the opening of the anchor tag, %4$s - Open span tag, %4$s - Close span tag 13721 13720 #: includes/deprecated-functions.php:1499 13722 #: includes/emails/ functions.php:15113721 #: includes/emails/recapture.php:126 13723 13722 msgid "%1$s %2$s %3$s %4$s Dismiss this notice. %5$s" 13724 13723 msgstr "" … … 13879 13878 msgstr "" 13880 13879 13881 #: includes/emails/ functions.php:11013880 #: includes/emails/recapture.php:84 13882 13881 msgid "Something went wrong. Recapture for EDD was not installed correctly." 13883 13882 msgstr "" 13884 13883 13885 13884 #. Translators: %1$s - <strong> tag, %2$s - </strong> tag, %3$s - <a> tag, %4$s - </a> tag 13886 #: includes/emails/ functions.php:13813885 #: includes/emails/recapture.php:113 13887 13886 msgid "%1$sRecover abandoned purchases like this one.%2$s %3$sTry Recapture for free%4$s." 13888 13887 msgstr "" … … 15924 15923 15925 15924 #. Translators: The charge ID from Stripe that is being refunded. 15926 #: includes/gateways/stripe/includes/webhooks.php: 9215925 #: includes/gateways/stripe/includes/webhooks.php:105 15927 15926 msgid "Charge %s has been fully refunded in Stripe." 15928 15927 msgstr "" 15929 15928 15930 15929 #. Translators: The charge ID from Stripe that is being partially refunded. 15931 #: includes/gateways/stripe/includes/webhooks.php: 9615930 #: includes/gateways/stripe/includes/webhooks.php:109 15932 15931 msgid "Charge %s partially refunded in Stripe." 15933 15932 msgstr "" 15934 15933 15935 15934 #. translators: %s Stripe Radar review opening reason. 15936 #: includes/gateways/stripe/includes/webhooks.php:1 4215935 #: includes/gateways/stripe/includes/webhooks.php:155 15937 15936 msgid "Stripe Radar review opened with a reason of %s." 15938 15937 msgstr "" 15939 15938 15940 15939 #. translators: %s Stripe Radar review closing reason. 15941 #: includes/gateways/stripe/includes/webhooks.php: 18715940 #: includes/gateways/stripe/includes/webhooks.php:200 15942 15941 msgid "Stripe Radar review closed with a reason of %s." 15943 15942 msgstr "" … … 15990 15989 msgstr "" 15991 15990 15992 #: includes/misc-functions.php:12 1715991 #: includes/misc-functions.php:1237 15993 15992 msgid "Store Bot" 15994 15993 msgstr "" 15995 15994 15996 #: includes/misc-functions.php:14 3715995 #: includes/misc-functions.php:1457 15997 15996 msgid "Verified" 15998 15997 msgstr "" 15999 15998 16000 #: includes/misc-functions.php:14 3815999 #: includes/misc-functions.php:1458 16001 16000 msgid "Spam" 16002 16001 msgstr "" 16003 16002 16004 #: includes/misc-functions.php:14 3916003 #: includes/misc-functions.php:1459 16005 16004 msgid "Deleted" 16006 16005 msgstr "" 16007 16006 16008 #: includes/misc-functions.php:14 4016007 #: includes/misc-functions.php:1460 16009 16008 msgid "Cancelled" 16010 16009 msgstr "" 16011 16010 16012 #: includes/misc-functions.php:15 5416011 #: includes/misc-functions.php:1574 16013 16012 msgid "Please define default parameters in the form of an array." 16014 16013 msgstr "" 16015 16014 16016 #: includes/misc-functions.php:15 5916015 #: includes/misc-functions.php:1579 16017 16016 msgid "Please define an SVG icon filename." 16018 16017 msgstr "" … … 16044 16043 #. Translators: %1$s - type of amount being refunded (subtotal, tax, or total); %1$s - adjustment description; %3$s - maximum amount allowed for refund 16045 16044 #: includes/orders/classes/class-refund-validator.php:390 16046 msgid "The maximum refund % s for the adjustment \"%s\" is %s."16045 msgid "The maximum refund %1$s for the adjustment \"%2$s\" is %3$s." 16047 16046 msgstr "" 16048 16047 … … 17625 17624 msgstr "" 17626 17625 17627 #. translators: %s is the name of the extension.17628 17626 #: src/Admin/Extensions/Legacy.php:45 17629 17627 msgid "%s is now part of EDD!" 17630 17628 msgstr "" 17631 17629 17632 #. translators: %s is the name of the extension.17633 17630 #: src/Admin/Extensions/Legacy.php:50 17634 17631 msgid "The functionality of %s has been merged into Easy Digital Downloads. It has been deactivated and you can safely delete the %s plugin." … … 17695 17692 msgstr "" 17696 17693 17697 #: src/Admin/Onboarding/Steps/Products.php:3 217694 #: src/Admin/Onboarding/Steps/Products.php:38 17698 17695 msgid "Product details" 17699 17696 msgstr "" 17700 17697 17701 #: src/Admin/Onboarding/Steps/Products.php: 3717698 #: src/Admin/Onboarding/Steps/Products.php:43 17702 17699 msgid "We'll get started with some basic information. Don't worry, you can add more details later. When you're finished here, the product will be saved as a draft so you can finish up later." 17703 17700 msgstr "" 17704 17701 17705 #: src/Admin/Onboarding/Steps/Products.php: 4517702 #: src/Admin/Onboarding/Steps/Products.php:51 17706 17703 msgid "Product Name" 17707 17704 msgstr "" 17708 17705 17709 #: src/Admin/Onboarding/Steps/Products.php: 5717706 #: src/Admin/Onboarding/Steps/Products.php:63 17710 17707 msgid "Set image" 17711 17708 msgstr "" 17712 17709 17713 #: src/Admin/Onboarding/Steps/Products.php: 5717710 #: src/Admin/Onboarding/Steps/Products.php:63 17714 17711 msgid "Set Image" 17715 17712 msgstr "" 17716 17713 17717 #: src/Admin/Onboarding/Steps/Products.php:6 317714 #: src/Admin/Onboarding/Steps/Products.php:69 17718 17715 msgid "Pricing Options" 17719 17716 msgstr "" 17720 17717 17721 #: src/Admin/Onboarding/Steps/Products.php: 6717718 #: src/Admin/Onboarding/Steps/Products.php:73 17722 17719 msgid "Single price" 17723 17720 msgstr "" 17724 17721 17725 #: src/Admin/Onboarding/Steps/Products.php: 6817722 #: src/Admin/Onboarding/Steps/Products.php:74 17726 17723 msgid "Variable price" 17727 17724 msgstr "" 17728 17725 17729 #: src/Admin/Onboarding/Steps/Products.php:7 317726 #: src/Admin/Onboarding/Steps/Products.php:79 17730 17727 msgid "Product Price" 17731 17728 msgstr "" 17732 17729 17733 #: src/Admin/Onboarding/Steps/Products.php:1 2717730 #: src/Admin/Onboarding/Steps/Products.php:141 17734 17731 msgid "Add your first file" 17735 17732 msgstr "" 17736 17733 17737 #: src/Admin/Onboarding/Steps/Products.php:1 3617734 #: src/Admin/Onboarding/Steps/Products.php:150 17738 17735 msgid "Ready to add your first downloadable file to your product? Great! These files will be protected and only available to people who purchase your product. Not ready yet? No problem, you can always add and update files later." 17739 17736 msgstr "" 17740 17737 17741 #: src/Admin/Onboarding/Steps/Products.php:1 5217738 #: src/Admin/Onboarding/Steps/Products.php:166 17742 17739 msgid "Congratulations!" 17743 17740 msgstr "" 17744 17741 17745 #: src/Admin/Onboarding/Steps/Products.php:1 5317742 #: src/Admin/Onboarding/Steps/Products.php:167 17746 17743 msgid "You've set up your store and your first product has been created." 17747 17744 msgstr "" 17748 17745 17749 #: src/Admin/Onboarding/Steps/Products.php:1 5417746 #: src/Admin/Onboarding/Steps/Products.php:168 17750 17747 msgid "Edit My Product" 17751 17748 msgstr "" 17752 17749 17753 #: src/Admin/Onboarding/Steps/Products.php:1 5517750 #: src/Admin/Onboarding/Steps/Products.php:169 17754 17751 msgid "Explore Extensions" 17755 17752 msgstr "" … … 18904 18901 18905 18902 #: src/Admin/Settings/Tabs/Gateways.php:229 18906 msgid "Enable Sequent al Numbering"18903 msgid "Enable Sequential Numbering" 18907 18904 msgstr "" 18908 18905 … … 18980 18977 #. translators: %1$s: opening anchor tag, %2$s: closing anchor tag 18981 18978 #: src/Admin/Settings/Tabs/Gateways.php:374 18982 msgid "Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation De ctection, %1$sUpgrade to Pro%2$s."18979 msgid "Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation Detection, %1$sUpgrade to Pro%2$s." 18983 18980 msgstr "" 18984 18981 -
easy-digital-downloads/tags/3.2.12/readme.txt
r3061317 r3078938 5 5 Tags: ecommerce, payments, sell, digital store, stripe 6 6 Requires at least: 5.8 7 Tested up to: 6. 47 Tested up to: 6.5 8 8 Requires PHP: 7.4 9 Stable Tag: 3.2.1 19 Stable Tag: 3.2.12 10 10 License: GNU Version 2 or Any Later Version 11 11 … … 75 75 * Email Receipts - The included email receipts are fully customizable to ensure that your brand is represented in your receipts. 76 76 * Customer Management - Track your customer lifetime value and purchase history with the included Customer Management system. Quickly access a customer's entire purchase history, add notes, and link to WordPress users. 77 * Refund and Dispute Handling - With our a ccounting friendly store management system, refunds and disputes ensurethat your records are accurate and customers only have access to files when they should.77 * Refund and Dispute Handling - With our automated order management tools, EDD ensures that your records are accurate and customers only have access to files when they should. 78 78 * Customer Profile Editor - Give your users to their purchase history and profile management with the included blocks. 79 79 … … 148 148 = Is there a sample import file I can use to setup a demo store? = 149 149 150 Yes! Simply go to Tools > Import and install the WordPress Importer, then you can use the XML file located at wp-content/plugins/easy-digital-downloads/assets/ and select the sample-products-import.xml file. This will create several sample products and plugin pages for you.150 Yes! Simply go to Tools > Import and install the WordPress Importer, then you can use the sample-products-import.xml file located in wp-content/plugins/easy-digital-downloads/assets/. This will create several sample products and plugin pages for you. 151 151 152 152 = Can I import all the products from my existing store into EDD? = … … 225 225 226 226 == Changelog == 227 = 3.2.12 = 228 * Compatibility: Fixed a conflict between Setup Wizard and the Multi-Currency extension. 229 * Stripe: Improved the handling of refunding charges via the Stripe Dashboard. 230 * Exports: Improved performance, management, and protection of export files generated by EDD. 231 * Emails: Improved the validation before installing the Recapture integration. 232 233 View the full changelog at [https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/](https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/?utm_medium=readme&utm_source=wporg&utm_campaign=edd-plugin&utm_term=description) 234 227 235 = 3.2.11 = 228 236 * Order Management: When searching orders, a Product ID was being erroneously added to the filter arguments when it not have been. 229 230 View the full changelog at [https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/](https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/?utm_medium=readme&utm_source=wporg&utm_campaign=edd-plugin&utm_term=description)231 237 232 238 = 3.2.10 = … … 243 249 * HTML: The Textarea HTML field could add empty content to the value. 244 250 * Checkout: The Privacy Policy checkbox may not always show when expected. 245 * Blocks: Improved loading of Easy Digital Download blocks.246 * Blocks: Improved the handling of Easy Digital Download blocks when using a classic theme.251 * Blocks: Improved loading of Easy Digital Downloads blocks. 252 * Blocks: Improved the handling of Easy Digital Downloads blocks when using a classic theme. 247 253 * Orders: Manually creating orders in the admin could fail to save the order due to a capability check. 248 254 * Migration: Improved the reliability of the EDD 3.0+ migration routine for possibly corrupt serialized data. … … 251 257 = 3.2.9 = 252 258 * Stripe: Resending the purchase receipt could fail if including the Stripe statement descriptor in the email template. 253 * Settings: Improve the reliability of determining the timezone settings in WordPress.259 * Settings: Improved the reliability of determining the timezone settings in WordPress. 254 260 * Reports: When using custom dates for reporting, some timezone settings could make the dates show incorrectly. 255 261 * Emails: Adjusted when the deprecation notices will be shown for the legacy email hooks. … … 390 396 * Fix: EDD Blocks placeholder styles could interfere with WordPress Core placeholders. 391 397 * Fix: Additional, not officially supported fee data is now stored as order adjustment metadata. 392 * Dev: Many filters and hooks that passed EDD_Payment objects now have a compl imentary hook or filter that uses EDD\Orders\Order objects.398 * Dev: Many filters and hooks that passed EDD_Payment objects now have a complementary hook or filter that uses EDD\Orders\Order objects. 393 399 * Dev: Easy Digital Downloads is no longer registering the edd_payment and edd_discount post types. 394 400 * Dev: Easy Digital Downloads – Core now holds the Stripe base code, and Stripe Pro 3.0.0 only contains pro features. -
easy-digital-downloads/tags/3.2.12/src/Admin/Onboarding/Steps/Products.php
r3036940 r3078938 13 13 14 14 // Exit if accessed directly. 15 defined( 'ABSPATH' ) || exit; 15 defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore 16 16 17 /** 18 * Products step class. 19 */ 17 20 class Products extends Step { 18 21 … … 23 26 */ 24 27 public function step_html() { 25 $currency_position = edd_get_option( 'currency_position', 'before' ); 28 $currency_position = edd_get_option( 'currency_position', 'before' ); 29 // Remove all actions that may have been added by extensions. 30 remove_all_actions( 'edd_after_price_field' ); 31 remove_all_actions( 'edd_download_price_option_row' ); 26 32 ?> 27 33 <form method="post" class="edd-onboarding__create-product-form"> … … 124 130 <div class="edd-form-group__control"> 125 131 <label class="edd-toggle edd-onboarding__upload-files-toggle" for="_edd_upload_files"> 126 <?php echo EDD()->html->checkbox( array( 'name' => '_edd_upload_files', 'current' => null, 'class' => 'edd-form-group__input', ) ); ?> 132 <?php 133 echo EDD()->html->checkbox( 134 array( 135 'name' => '_edd_upload_files', 136 'current' => null, 137 'class' => 'edd-form-group__input', 138 ) 139 ); 140 ?> 127 141 <span><?php echo esc_html_e( 'Add your first file', 'easy-digital-downloads' ); ?></span> 128 142 </label> -
easy-digital-downloads/tags/3.2.12/src/Admin/Settings/Tabs/Gateways.php
r3036940 r3078938 227 227 'enable_sequential' => array( 228 228 'id' => 'enable_sequential', 229 'name' => __( 'Enable Sequent al Numbering', 'easy-digital-downloads' ),229 'name' => __( 'Enable Sequential Numbering', 'easy-digital-downloads' ), 230 230 'check' => __( 'Check this box to enable sequential order numbers.', 'easy-digital-downloads' ), 231 231 'desc' => __( 'Does not impact previous orders. Future orders will be sequential.', 'easy-digital-downloads' ), … … 372 372 return sprintf( 373 373 /* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */ 374 __( 'Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation De ctection, %1$sUpgrade to Pro%2$s.', 'easy-digital-downloads' ),374 __( 'Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation Detection, %1$sUpgrade to Pro%2$s.', 'easy-digital-downloads' ), 375 375 '<a href="' . $upgrade_link . '" class="edd-pro-upgrade" target="_blank">', 376 376 '</a>' -
easy-digital-downloads/trunk/assets/js/edd-admin-settings.js
r3036940 r3078938 1 !function(e){var t={};function n(a){if(t[a])return t[a].exports;var d=t[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var d in e)n.d(a,d,function(t){return e[t]}.bind(null,d));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=318)}({1:function(e,t){e.exports=jQuery},291:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var a=function(){ e.post(ajaxurl,{action:"edd_recapture_remote_install"},(function(e){!e.success&&e.data&&confirm(e.data.error)?location.reload():window.location.href="https://recapture.io/register"}))}}).call(this,n(1))},318:function(e,t,n){"use strict";n.r(t),function(e,t){var a=n(291),d=(n(319),{init:function(){this.general(),this.misc(),this.gateways(),this.emails()},general:function(){var t,n=e(".edd-color-picker");n.length&&n.wpColorPicker(),window.formfield="",e(document.body).on("click",".edd_settings_upload_button",(function(n){n.preventDefault();var a=e(this);window.formfield=e(a.data("input")),t||((t=wp.media.frames.file_frame=wp.media({title:a.data("uploader_title"),library:{type:"image"},button:{text:a.data("uploader_button_text")},multiple:!1})).on("menu:render:default",(function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.unset("playlist"),e.unset("video-playlist"),e.set({})})),t.on("select",(function(){t.state().get("selection").each((function(e,t){e=e.toJSON(),window.formfield.val(e.url)}))}))),t.open()})),window.formfield=""},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),n=t.parent().parent().next(),a=e('input[name="edd_settings[allow_tracking]"]');"direct"===t.val()&&(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)),t.on("change",(function(){"direct"===e(this).val()?(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)):(n.find("input").prop("disabled",!1),n.css("opacity","1"))})),a.on("change",(function(){e(".allow_tracking.edd-heart").toggleClass("edd-hidden")}))},gateways:function(){e('#edd-payment-gateways input[type="checkbox"]').on("change",(function(){var t=e(this).data("gateway-key"),n=e("#edd_settings\\[default_gateway\\]"),a=n.find('option[value="'+t+'"]');a.prop("disabled",(function(e,t){return!t})),a.prop("selected")&&a.prop("selected",!1),n.trigger("chosen:updated")}))},emails:function(){e("#edd-recapture-connect").on("click",(function(t){t.preventDefault(),e(this).html(edd_vars.wait+' <span class="edd-loading"></span>'),document.body.style.cursor="wait",Object(a.a)()}));var t=e('select[name="edd_settings[email_summary_recipient]"]'),n=t.val(),d=e('textarea[name="edd_settings[email_summary_custom_recipients]"]').parents("tr"),o=e("#edd-send-test-summary-save-changes-notice"),s=e("#edd-send-test-summary"),i=e("#edd-send-test-summary-notice");t.on("change",(function(){d.toggleClass("hidden"),s.removeClass("hidden updated-message"),i.empty(),o.empty(),n!==t.val()&&(s.addClass("hidden"),o.html('<div class="notice notice-info"><p>'+edd_vars.test_email_save_changes+"</p></div>"))})),s.on("click",(function(t){t.preventDefault(),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{action:"edd_send_test_email_summary"},beforeSend:function(){i.empty(),s.addClass("updating-message").prop("disabled",!0)},success:function(e){"error"==e.status?i.html('<div class="updated '+e.status+'"><p>'+e.message+"</p></div>"):(s.addClass("updated-message"),setTimeout((function(){s.removeClass("updated-message")}),3e3))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){s.removeClass("updating-message").prop("disabled",!1)}))}))}});t(document).ready((function(e){d.init()}))}.call(this,n(1),n(1))},319:function(e,t,n){(function(e){e(document).ready((function(t){if("undefined"!=typeof eddPayPalConnectVars){var n=document.getElementById("edd-paypal-commerce-errors");if(n&&n.length){for(;n.firstChild;)n.removeChild(n.firstChild);n.classList.remove("notice notice-error")}if(eddPayPalConnectVars.isConnected){var a=document.getElementById("edd-paypal-commerce-reconnect");a&&a.addEventListener("click",(function(e){e.preventDefault();var n=t("#edd-paypal-commerce-errors");n.empty().removeClass("notice notice-error"),a.classList.add("updating-message"),a.disabled=!0,t.post(ajaxurl,{action:"edd_paypal_commerce_reconnect",_ajax_nonce:a.dataset.nonce}).done((function(){})).fail((function(e){console.log("Reconnect failure",e.data),a.classList.remove("updating-message"),a.disabled=!1,n.html("<p>"+e.data+"</p>").addClass("notice notice-error")}))})),function e(){var n=document.getElementById("edd-paypal-commerce-connect-wrap");n&&t.post(ajaxurl,{action:"edd_paypal_commerce_get_account_info",_ajax_nonce:n.getAttribute("data-nonce")},(function(a){var d="<p>"+eddPayPalConnectVars.defaultError+"</p>";a.success?(d=a.data.account_status,a.data.actions&&a.data.actions.length&&(d+='<p class="edd-paypal-connect-actions">'+a.data.actions.join(" ")+"</p>"),a.data.disconnect_links&&a.data.disconnect_links.length&&(document.getElementById("edd-paypal-disconnect").innerHTML=a.data.disconnect_links.join(" "))):a.data&&a.data.message&&(d=a.data.message),n.innerHTML=d,n.classList.remove("notice-success","notice-warning","notice-error","loading");var o=a.success&&a.data.status?"notice-"+a.data.status:"notice-error";n.classList.add(o);var s,i=document.getElementById("edd-paypal-commerce-get-help");"success"===a.data.status?(i.classList.add("edd-hidden"),i.classList.remove("button","button-secondary")):(i.classList.remove("edd-hidden"),i.classList.add("button","button-secondary")),(s=document.querySelectorAll(".edd-paypal-connect-action"))&&s.length&&s.forEach((function(n){n.addEventListener("click",(function(n){n.preventDefault();var a=n.target;a.disabled=!0,a.classList.add("updating-message");var d=document.getElementById("edd-paypal-commerce-connect-wrap");d&&d.length&&d.remove(),t.post(ajaxurl,{action:a.dataset.action,_ajax_nonce:a.dataset.nonce}).done((function(){e()})).fail((function(e){console.log("Failure",e.data),a.disabled=!1,a.classList.remove("updating-message"),d.html("<p>"+e.data+"</p>").addClass("edd-paypal-actions-error-wrap")}))}))}))}))}()}else{if(document.getElementById("edd-paypal-commerce-link")){var d=document.createElement("script");d.id="edd-paypal-commerce-onboarding",d.src="https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js",document.body.appendChild(d),setTimeout((function(){"undefined"!==window.PAYPAL.apps.Signup&&window.PAYPAL.apps.Signup.render()}),1e3)}window.eddPayPalOnboardingCallback=function(t,n){var a=document.getElementById("edd-paypal-commerce-link"),d=document.getElementById("edd-paypal-commerce-errors");e.post(ajaxurl,{action:"edd_paypal_commerce_get_access_token",auth_code:t,share_id:n,_ajax_nonce:a.dataset.nonce}).done((function(){a.classList.add("disabled","updating-message"),a.disabled=!0})).fail((function(e){d.innerHTML="<p>"+e.data+"</p>",d.classList.add("notice","notice-error");var t=document.getElementById("edd-paypal-commerce-get-help");t.classList.remove("edd-hidden"),t.classList.add("button","button-secondary")}))}}}}))}).call(this,n(1))}});1 !function(e){var t={};function n(a){if(t[a])return t[a].exports;var d=t[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var d in e)n.d(a,d,function(t){return e[t]}.bind(null,d));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=318)}({1:function(e,t){e.exports=jQuery},291:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var a=function(){var t={action:"edd_recapture_remote_install",nonce:document.getElementById("edd-recapture-connect-nonce").value};e.post(ajaxurl,t,(function(e){!e.success&&e.data&&confirm(e.data.error)?location.reload():window.location.href="https://recapture.io/register"}))}}).call(this,n(1))},318:function(e,t,n){"use strict";n.r(t),function(e,t){var a=n(291),d=(n(319),{init:function(){this.general(),this.misc(),this.gateways(),this.emails()},general:function(){var t,n=e(".edd-color-picker");n.length&&n.wpColorPicker(),window.formfield="",e(document.body).on("click",".edd_settings_upload_button",(function(n){n.preventDefault();var a=e(this);window.formfield=e(a.data("input")),t||((t=wp.media.frames.file_frame=wp.media({title:a.data("uploader_title"),library:{type:"image"},button:{text:a.data("uploader_button_text")},multiple:!1})).on("menu:render:default",(function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.unset("playlist"),e.unset("video-playlist"),e.set({})})),t.on("select",(function(){t.state().get("selection").each((function(e,t){e=e.toJSON(),window.formfield.val(e.url)}))}))),t.open()})),window.formfield=""},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),n=t.parent().parent().next(),a=e('input[name="edd_settings[allow_tracking]"]');"direct"===t.val()&&(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)),t.on("change",(function(){"direct"===e(this).val()?(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)):(n.find("input").prop("disabled",!1),n.css("opacity","1"))})),a.on("change",(function(){e(".allow_tracking.edd-heart").toggleClass("edd-hidden")}))},gateways:function(){e('#edd-payment-gateways input[type="checkbox"]').on("change",(function(){var t=e(this).data("gateway-key"),n=e("#edd_settings\\[default_gateway\\]"),a=n.find('option[value="'+t+'"]');a.prop("disabled",(function(e,t){return!t})),a.prop("selected")&&a.prop("selected",!1),n.trigger("chosen:updated")}))},emails:function(){e("#edd-recapture-connect").on("click",(function(t){t.preventDefault(),e(this).html(edd_vars.wait+' <span class="edd-loading"></span>'),document.body.style.cursor="wait",Object(a.a)()}));var t=e('select[name="edd_settings[email_summary_recipient]"]'),n=t.val(),d=e('textarea[name="edd_settings[email_summary_custom_recipients]"]').parents("tr"),o=e("#edd-send-test-summary-save-changes-notice"),s=e("#edd-send-test-summary"),c=e("#edd-send-test-summary-notice");t.on("change",(function(){d.toggleClass("hidden"),s.removeClass("hidden updated-message"),c.empty(),o.empty(),n!==t.val()&&(s.addClass("hidden"),o.html('<div class="notice notice-info"><p>'+edd_vars.test_email_save_changes+"</p></div>"))})),s.on("click",(function(t){t.preventDefault(),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{action:"edd_send_test_email_summary"},beforeSend:function(){c.empty(),s.addClass("updating-message").prop("disabled",!0)},success:function(e){"error"==e.status?c.html('<div class="updated '+e.status+'"><p>'+e.message+"</p></div>"):(s.addClass("updated-message"),setTimeout((function(){s.removeClass("updated-message")}),3e3))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){s.removeClass("updating-message").prop("disabled",!1)}))}))}});t(document).ready((function(e){d.init()}))}.call(this,n(1),n(1))},319:function(e,t,n){(function(e){e(document).ready((function(t){if("undefined"!=typeof eddPayPalConnectVars){var n=document.getElementById("edd-paypal-commerce-errors");if(n&&n.length){for(;n.firstChild;)n.removeChild(n.firstChild);n.classList.remove("notice notice-error")}if(eddPayPalConnectVars.isConnected){var a=document.getElementById("edd-paypal-commerce-reconnect");a&&a.addEventListener("click",(function(e){e.preventDefault();var n=t("#edd-paypal-commerce-errors");n.empty().removeClass("notice notice-error"),a.classList.add("updating-message"),a.disabled=!0,t.post(ajaxurl,{action:"edd_paypal_commerce_reconnect",_ajax_nonce:a.dataset.nonce}).done((function(){})).fail((function(e){console.log("Reconnect failure",e.data),a.classList.remove("updating-message"),a.disabled=!1,n.html("<p>"+e.data+"</p>").addClass("notice notice-error")}))})),function e(){var n=document.getElementById("edd-paypal-commerce-connect-wrap");n&&t.post(ajaxurl,{action:"edd_paypal_commerce_get_account_info",_ajax_nonce:n.getAttribute("data-nonce")},(function(a){var d="<p>"+eddPayPalConnectVars.defaultError+"</p>";a.success?(d=a.data.account_status,a.data.actions&&a.data.actions.length&&(d+='<p class="edd-paypal-connect-actions">'+a.data.actions.join(" ")+"</p>"),a.data.disconnect_links&&a.data.disconnect_links.length&&(document.getElementById("edd-paypal-disconnect").innerHTML=a.data.disconnect_links.join(" "))):a.data&&a.data.message&&(d=a.data.message),n.innerHTML=d,n.classList.remove("notice-success","notice-warning","notice-error","loading");var o=a.success&&a.data.status?"notice-"+a.data.status:"notice-error";n.classList.add(o);var s,c=document.getElementById("edd-paypal-commerce-get-help");"success"===a.data.status?(c.classList.add("edd-hidden"),c.classList.remove("button","button-secondary")):(c.classList.remove("edd-hidden"),c.classList.add("button","button-secondary")),(s=document.querySelectorAll(".edd-paypal-connect-action"))&&s.length&&s.forEach((function(n){n.addEventListener("click",(function(n){n.preventDefault();var a=n.target;a.disabled=!0,a.classList.add("updating-message");var d=document.getElementById("edd-paypal-commerce-connect-wrap");d&&d.length&&d.remove(),t.post(ajaxurl,{action:a.dataset.action,_ajax_nonce:a.dataset.nonce}).done((function(){e()})).fail((function(e){console.log("Failure",e.data),a.disabled=!1,a.classList.remove("updating-message"),d.html("<p>"+e.data+"</p>").addClass("edd-paypal-actions-error-wrap")}))}))}))}))}()}else{if(document.getElementById("edd-paypal-commerce-link")){var d=document.createElement("script");d.id="edd-paypal-commerce-onboarding",d.src="https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js",document.body.appendChild(d),setTimeout((function(){"undefined"!==window.PAYPAL.apps.Signup&&window.PAYPAL.apps.Signup.render()}),1e3)}window.eddPayPalOnboardingCallback=function(t,n){var a=document.getElementById("edd-paypal-commerce-link"),d=document.getElementById("edd-paypal-commerce-errors");e.post(ajaxurl,{action:"edd_paypal_commerce_get_access_token",auth_code:t,share_id:n,_ajax_nonce:a.dataset.nonce}).done((function(){a.classList.add("disabled","updating-message"),a.disabled=!0})).fail((function(e){d.innerHTML="<p>"+e.data+"</p>",d.classList.add("notice","notice-error");var t=document.getElementById("edd-paypal-commerce-get-help");t.classList.remove("edd-hidden"),t.classList.add("button","button-secondary")}))}}}}))}).call(this,n(1))}}); -
easy-digital-downloads/trunk/easy-digital-downloads.php
r3061317 r3078938 6 6 * Author: Easy Digital Downloads 7 7 * Author URI: https://easydigitaldownloads.com 8 * Version: 3.2.1 18 * Version: 3.2.12 9 9 * Text Domain: easy-digital-downloads 10 10 * Domain Path: /languages … … 28 28 * @category Core 29 29 * @author Easy Digital Downloads 30 * @version 3.2.1 130 * @version 3.2.12 31 31 */ 32 32 -
easy-digital-downloads/trunk/i18n/states-in.php
r2940530 r3078938 36 36 'AN' => __( 'Andaman and Nicobar Islands', 'easy-digital-downloads' ), 37 37 'CH' => __( 'Chandigarh', 'easy-digital-downloads' ), 38 'DN' => __( 'Dad arand Nagar Haveli', 'easy-digital-downloads' ),38 'DN' => __( 'Dadra and Nagar Haveli', 'easy-digital-downloads' ), 39 39 'DD' => __( 'Daman and Diu', 'easy-digital-downloads' ), 40 40 'DL' => __( 'Delhi', 'easy-digital-downloads' ), -
easy-digital-downloads/trunk/includes/admin/reporting/export/class-batch-export.php
r2990247 r3078938 134 134 public function __construct( $_step = 1 ) { 135 135 136 $ upload_dir = wp_upload_dir();136 $exports_dir = edd_get_exports_dir(); 137 137 $this->filetype = '.csv'; 138 $this->filename = 'edd-' . $this->export_type . $this->filetype; 139 $this->file = trailingslashit( $upload_dir['basedir'] ) . $this->filename; 140 141 if ( ! is_writeable( $upload_dir['basedir'] ) ) { 138 $file_date = date( 'Y-m-d' ); 139 $file_hash = substr( wp_hash( 'edd-' . $this->export_type . '-export', 'nonce' ), 0, 8 ); 140 $this->filename = sprintf( 141 'edd-%1$s-export-%2$s-%3$s%4$s', 142 $this->export_type, 143 $file_date, 144 $file_hash, 145 $this->filetype 146 ); 147 $this->file = trailingslashit( $exports_dir ) . $this->filename; 148 149 if ( ! is_writeable( $exports_dir ) ) { 142 150 $this->is_writable = false; 143 151 } -
easy-digital-downloads/trunk/includes/admin/reporting/export/export-actions.php
r2964278 r3078938 264 264 265 265 /** 266 * Register the taxed orders report batch exporter.266 * Register the taxed customers report batch exporter. 267 267 * 268 268 * @since 3.0 -
easy-digital-downloads/trunk/includes/admin/settings/register-settings.php
r3036940 r3078938 1812 1812 <?php if ( current_user_can( 'install_plugins' ) ) : ?> 1813 1813 <p> 1814 <button type="button" id="edd-recapture-connect" class="button button-primary"><?php esc_html_e( 'Connect with Recapture', 'easy-digital-downloads' ); ?> 1814 <button type="button" id="edd-recapture-connect" class="button button-primary"> 1815 <?php esc_html_e( 'Connect with Recapture', 'easy-digital-downloads' ); ?> 1815 1816 </button> 1817 <?php wp_nonce_field( 'edd-recapture-connect', 'edd-recapture-connect-nonce' ); ?> 1816 1818 </p> 1817 1819 <?php endif; ?> -
easy-digital-downloads/trunk/includes/class-easy-digital-downloads.php
r3061317 r3078938 371 371 // Plugin version. 372 372 if ( ! defined( 'EDD_VERSION' ) ) { 373 define( 'EDD_VERSION', '3.2.1 1' );373 define( 'EDD_VERSION', '3.2.12' ); 374 374 } 375 375 … … 730 730 require_once EDD_PLUGIN_DIR . 'includes/emails/class-edd-email-tags.php'; 731 731 require_once EDD_PLUGIN_DIR . 'includes/emails/functions.php'; 732 require_once EDD_PLUGIN_DIR . 'includes/emails/recapture.php'; 732 733 require_once EDD_PLUGIN_DIR . 'includes/emails/tags.php'; 733 734 require_once EDD_PLUGIN_DIR . 'includes/emails/tags-inserter.php'; -
easy-digital-downloads/trunk/includes/class-edd-cron.php
r2756001 r3078938 30 30 add_filter( 'cron_schedules', array( $this, 'add_schedules' ) ); 31 31 add_action( 'wp', array( $this, 'schedule_events' ) ); 32 add_action( 'edd_daily_scheduled_events', array( $this, 'exports_cleanup' ) ); 32 33 } 33 34 … … 87 88 } 88 89 90 /** 91 * Cleanup after ourselves during exports. 92 * 93 * @since 3.2.12 94 * 95 * @return void 96 */ 97 public function exports_cleanup() { 98 if ( class_exists( 'EDD\Cron\Loader' ) ) { 99 return; 100 } 101 102 $exports_dir = edd_get_exports_dir(); 103 $files = scandir( $exports_dir ); 104 105 if ( ! empty( $files ) ) { 106 foreach ( $files as $file ) { 107 if ( '.' === $file[0] ) { 108 continue; 109 } 110 111 $full_path = trailingslashit( $exports_dir ) . $file; 112 113 if ( is_dir( $full_path ) || ( 'index.php' === basename( $full_path ) || 'index.html' === basename( $full_path ) ) ) { 114 continue; 115 } 116 117 $modified_time = filemtime( $full_path ); 118 119 // If the file hasn't been modified in the last 2 hours, delete it. 120 if ( time() - $modified_time > HOUR_IN_SECONDS * 2 ) { 121 unlink( $full_path ); 122 } 123 } 124 } 125 126 // Also remove any older exports in the uploads directory. 127 $uploads_dir = wp_upload_dir(); 128 $files = scandir( $uploads_dir['basedir'] ); 129 130 if ( ! empty( $files ) ) { 131 foreach ( $files as $file ) { 132 if ( '.' === $file[0] ) { 133 continue; 134 } 135 136 $full_path = trailingslashit( $uploads_dir['basedir'] ) . $file; 137 138 if ( is_dir( $full_path ) || ( 'index.php' === basename( $full_path ) || 'index.html' === basename( $full_path ) ) ) { 139 continue; 140 } 141 142 // If the filename doesn't start with `edd-` don't delete it. 143 if ( false === strpos( $file, 'edd-' ) ) { 144 continue; 145 } 146 147 // If the file is not a .csv, don't delete it. 148 if ( '.csv' !== substr( $file, -4 ) ) { 149 continue; 150 } 151 152 $modified_time = filemtime( $full_path ); 153 154 // If the file hasn't been modified in the last 2 hours, delete it. 155 if ( time() - $modified_time > HOUR_IN_SECONDS * 2 ) { 156 unlink( $full_path ); 157 } 158 } 159 } 160 } 89 161 } 90 $edd_cron = new EDD_Cron ;162 $edd_cron = new EDD_Cron(); -
easy-digital-downloads/trunk/includes/emails/functions.php
r2973984 r3078938 47 47 return (bool) apply_filters( 'edd_admin_notices_disabled', $ret, $payment_id ); 48 48 } 49 50 /**51 * Handle installation and connection for Recapture via ajax52 *53 * @since 2.10.254 */55 function edd_recapture_remote_install_handler () {56 57 if ( ! current_user_can( 'manage_shop_settings' ) || ! current_user_can( 'install_plugins' ) ) {58 wp_send_json_error( array(59 'error' => __( 'You do not have permission to do this.', 'easy-digital-downloads' )60 ) );61 }62 63 include_once ABSPATH . 'wp-admin/includes/plugin-install.php';64 include_once ABSPATH . 'wp-admin/includes/file.php';65 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';66 67 $plugins = get_plugins();68 69 if( ! array_key_exists( 'recapture-for-edd/recapture.php', $plugins ) ) {70 71 /*72 * Use the WordPress Plugins API to get the plugin download link.73 */74 $api = plugins_api( 'plugin_information', array(75 'slug' => 'recapture-for-edd',76 ) );77 78 if ( is_wp_error( $api ) ) {79 wp_send_json_error( array(80 'error' => $api->get_error_message(),81 'debug' => $api82 ) );83 }84 85 /*86 * Use the AJAX Upgrader skin to quietly install the plugin.87 */88 $upgrader = new Plugin_Upgrader( new WP_Ajax_Upgrader_Skin() );89 $install = $upgrader->install( $api->download_link );90 if ( is_wp_error( $install ) ) {91 wp_send_json_error( array(92 'error' => $install->get_error_message(),93 'debug' => $api94 ) );95 }96 97 $activated = activate_plugin( $upgrader->plugin_info() );98 99 } else {100 101 $activated = activate_plugin( 'recapture-for-edd/recapture.php' );102 103 }104 105 /*106 * Final check to see if Recapture is available.107 */108 if ( is_wp_error( $activated ) ) {109 wp_send_json_error( array(110 'error' => __( 'Something went wrong. Recapture for EDD was not installed correctly.', 'easy-digital-downloads' )111 ) );112 }113 114 wp_send_json_success();115 }116 add_action( 'wp_ajax_edd_recapture_remote_install', 'edd_recapture_remote_install_handler' );117 118 /**119 * Maybe adds a notice to abandoned payments if Recapture isn't installed.120 *121 * @since 2.10.2122 *123 * @param int $payment_id The ID of the abandoned payment, for which a Recapture notice is being thrown.124 */125 function maybe_add_recapture_notice_to_abandoned_payment( $payment_id ) {126 127 if ( ! class_exists( 'Recapture' )128 && 'abandoned' === edd_get_payment_status( $payment_id )129 && ! get_user_meta( get_current_user_id(), '_edd_try_recapture_dismissed', true )130 ) {131 ?>132 <div class="notice notice-warning recapture-notice">133 <p>134 <?php135 echo wp_kses_post(136 sprintf(137 /* Translators: %1$s - <strong> tag, %2$s - </strong> tag, %3$s - <a> tag, %4$s - </a> tag */138 __( '%1$sRecover abandoned purchases like this one.%2$s %3$sTry Recapture for free%4$s.', 'easy-digital-downloads' ),139 '<strong>',140 '</strong>',141 '<a href="https://recapture.io/abandoned-carts-easy-digital-downloads" rel="noopener" target="_blank">',142 '</a>'143 )144 );145 ?>146 </p>147 <?php148 echo wp_kses_post(149 sprintf(150 /* Translators: %1$s - Opening anchor tag, %2$s - The url to dismiss the ajax notice, %3$s - Complete the opening of the anchor tag, %4$s - Open span tag, %4$s - Close span tag */151 __( '%1$s %2$s %3$s %4$s Dismiss this notice. %5$s', 'easy-digital-downloads' ),152 '<a href="',153 esc_url(154 wp_nonce_url(155 add_query_arg(156 array(157 'edd_action' => 'dismiss_notices',158 'edd_notice' => 'try_recapture',159 )160 ),161 'edd_notice_nonce'162 )163 ),164 '" type="button" class="notice-dismiss">',165 '<span class="screen-reader-text">',166 '</span>167 </a>'168 )169 );170 ?>171 </div>172 <?php173 }174 }175 add_action( 'edd_view_order_details_before', 'maybe_add_recapture_notice_to_abandoned_payment' ); -
easy-digital-downloads/trunk/includes/gateways/stripe/includes/webhooks.php
r2973984 r3078938 73 73 // If this was completely refunded, set the status to refunded. 74 74 if ( $charge->refunded ) { 75 $refund_id = edd_refund_order( $order->id ); 76 if ( $refund_id ) { 75 $refund_id = false; 76 if ( edd_is_order_refundable( $order->id ) ) { 77 $refund_id = edd_refund_order( $order->id ); 78 } else { 79 $refunds = edd_get_orders( 80 array( 81 'type' => 'refund', 82 'parent' => $order->id, 83 ) 84 ); 85 if ( ! empty( $refunds ) ) { 86 $refund_id = $refunds[0]->id; 87 } 88 } 89 if ( $refund_id && ! is_wp_error( $refund_id ) ) { 77 90 edd_add_order_transaction( 78 91 array( -
easy-digital-downloads/trunk/includes/misc-functions.php
r2964278 r3078938 860 860 861 861 /** 862 * Retrieve the absolute path to the file export directory without the trailing slash. 863 * 864 * @since 3.2.12 865 * 866 * @return string $path Absolute path to the EDD export directory 867 */ 868 function edd_get_exports_dir() { 869 $wp_upload_dir = wp_upload_dir(); 870 $edd_dir = edd_get_uploads_base_dir(); 871 $path = $wp_upload_dir['basedir'] . '/' . $edd_dir . '/exports'; 872 $exports_dir = apply_filters( 'edd_get_exports_dir', $path ); 873 874 // Make sure the directory exists. 875 wp_mkdir_p( $exports_dir ); 876 877 // Return, possibly filtered. 878 return $exports_dir; 879 } 880 881 /** 862 882 * Retrieve the URL to the file upload directory without the trailing slash 863 883 * -
easy-digital-downloads/trunk/includes/orders/classes/class-refund-validator.php
r2756001 r3078938 388 388 * %3$s - maximum amount allowed for refund 389 389 */ 390 __( 'The maximum refund % s for the adjustment "%s" is %s.', 'easy-digital-downloads' ),390 __( 'The maximum refund %1$s for the adjustment "%2$s" is %3$s.', 'easy-digital-downloads' ), 391 391 $column_name, 392 392 $original_item->description, -
easy-digital-downloads/trunk/languages/easy-digital-downloads.pot
r3061317 r3078938 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Easy Digital Downloads 3.2.1 1\n"5 "Project-Id-Version: Easy Digital Downloads 3.2.12\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-digital-downloads\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 3-29T18:25:38+00:00\n"12 "POT-Creation-Date: 2024-04-29T18:21:19+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 2514 2514 2515 2515 #: i18n/states-in.php:38 2516 msgid "Dad arand Nagar Haveli"2516 msgid "Dadra and Nagar Haveli" 2517 2517 msgstr "" 2518 2518 … … 5773 5773 #: includes/admin/reporting/class-export.php:188 5774 5774 #: includes/admin/reporting/class-gateway-error-logs-list-table.php:109 5775 #: includes/admin/reporting/export/class-batch-export.php:1 585775 #: includes/admin/reporting/export/class-batch-export.php:166 5776 5776 #: includes/admin/reporting/export/export-actions.php:24 5777 5777 #: includes/admin/tools.php:1161 … … 6359 6359 #: includes/admin/customers/class-customer-table.php:127 6360 6360 #: includes/admin/payments/orders.php:1084 6361 #: includes/misc-functions.php:14 366361 #: includes/misc-functions.php:1456 6362 6362 #: includes/payments/functions.php:537 6363 6363 msgid "Pending" … … 6370 6370 #: includes/admin/discounts/edit-discount.php:287 6371 6371 #: includes/class-edd-discount.php:705 6372 #: includes/misc-functions.php:14 316372 #: includes/misc-functions.php:1451 6373 6373 #: src/Admin/Promos/About.php:865 6374 6374 msgid "Active" … … 6553 6553 #: includes/admin/discounts/edit-discount.php:288 6554 6554 #: includes/class-edd-discount.php:699 6555 #: includes/misc-functions.php:14 326555 #: includes/misc-functions.php:1452 6556 6556 #: src/Admin/Promos/About.php:871 6557 6557 msgid "Inactive" … … 6623 6623 #: includes/api/class-edd-api.php:1978 6624 6624 #: includes/class-edd-license-handler.php:478 6625 #: includes/emails/recapture.php:24 6625 6626 #: includes/user-functions.php:958 6626 6627 msgid "Nonce verification failed." … … 7793 7794 7794 7795 #: includes/admin/downloads/metabox.php:522 7795 #: src/Admin/Onboarding/Steps/Products.php:1 147796 #: src/Admin/Onboarding/Steps/Products.php:120 7796 7797 msgid "Add New Price" 7797 7798 msgstr "" … … 7811 7812 msgstr "" 7812 7813 7813 #. translators: %1$s is the remove link, %2$s is the screen reader text.7814 7814 #: includes/admin/downloads/metabox.php:589 7815 7815 #: includes/admin/downloads/metabox.php:847 … … 9404 9404 9405 9405 #: includes/admin/reporting/class-export.php:188 9406 #: includes/admin/reporting/export/class-batch-export.php:1 589406 #: includes/admin/reporting/export/class-batch-export.php:166 9407 9407 #: includes/admin/tools/class-edd-tools-recount-customer-stats.php:114 9408 9408 #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:157 … … 10470 10470 msgstr "" 10471 10471 10472 #: includes/admin/settings/register-settings.php:181 410472 #: includes/admin/settings/register-settings.php:1815 10473 10473 msgid "Connect with Recapture" 10474 10474 msgstr "" 10475 10475 10476 10476 #. translators: Tax rate country code 10477 #: includes/admin/settings/register-settings.php:184 710477 #: includes/admin/settings/register-settings.php:1849 10478 10478 msgid "Duplicate tax rates are not allowed. Please deactivate the existing %s tax rate before adding or activating another." 10479 10479 msgstr "" 10480 10480 10481 #: includes/admin/settings/register-settings.php:18 4810481 #: includes/admin/settings/register-settings.php:1850 10482 10482 msgid "Please select a country." 10483 10483 msgstr "" 10484 10484 10485 #: includes/admin/settings/register-settings.php:18 4910485 #: includes/admin/settings/register-settings.php:1851 10486 10486 msgid "Please enter a tax rate greater than 0." 10487 10487 msgstr "" 10488 10488 10489 #: includes/admin/settings/register-settings.php:185 010489 #: includes/admin/settings/register-settings.php:1852 10490 10490 msgid "Are you sure you want to add a 0% tax rate?" 10491 10491 msgstr "" … … 10857 10857 10858 10858 #: includes/admin/tools.php:915 10859 #: src/Admin/Onboarding/Steps/Products.php:5 110859 #: src/Admin/Onboarding/Steps/Products.php:57 10860 10860 msgid "Product Image" 10861 10861 msgstr "" … … 12289 12289 msgstr "" 12290 12290 12291 #. Translators: %s is the name of the download that was added to the cart.12292 12291 #: includes/cart/template.php:311 12293 12292 msgid "Checkout." … … 13146 13145 msgstr "" 13147 13146 13148 #: includes/class-edd-cron.php:4 613147 #: includes/class-edd-cron.php:47 13149 13148 msgid "Once Weekly" 13150 13149 msgstr "" … … 13161 13160 #: includes/class-edd-discount.php:696 13162 13161 #: includes/gateways/stripe/includes/template-functions.php:377 13163 #: includes/misc-functions.php:14 3313162 #: includes/misc-functions.php:1453 13164 13163 msgid "Expired" 13165 13164 msgstr "" … … 13704 13703 #: includes/deprecated-functions.php:1591 13705 13704 #: includes/deprecated-functions.php:1667 13706 #: includes/emails/ functions.php:5913705 #: includes/emails/recapture.php:16 13707 13706 msgid "You do not have permission to do this." 13708 13707 msgstr "" … … 13720 13719 #. Translators: %1$s - Opening anchor tag, %2$s - The url to dismiss the ajax notice, %3$s - Complete the opening of the anchor tag, %4$s - Open span tag, %4$s - Close span tag 13721 13720 #: includes/deprecated-functions.php:1499 13722 #: includes/emails/ functions.php:15113721 #: includes/emails/recapture.php:126 13723 13722 msgid "%1$s %2$s %3$s %4$s Dismiss this notice. %5$s" 13724 13723 msgstr "" … … 13879 13878 msgstr "" 13880 13879 13881 #: includes/emails/ functions.php:11013880 #: includes/emails/recapture.php:84 13882 13881 msgid "Something went wrong. Recapture for EDD was not installed correctly." 13883 13882 msgstr "" 13884 13883 13885 13884 #. Translators: %1$s - <strong> tag, %2$s - </strong> tag, %3$s - <a> tag, %4$s - </a> tag 13886 #: includes/emails/ functions.php:13813885 #: includes/emails/recapture.php:113 13887 13886 msgid "%1$sRecover abandoned purchases like this one.%2$s %3$sTry Recapture for free%4$s." 13888 13887 msgstr "" … … 15924 15923 15925 15924 #. Translators: The charge ID from Stripe that is being refunded. 15926 #: includes/gateways/stripe/includes/webhooks.php: 9215925 #: includes/gateways/stripe/includes/webhooks.php:105 15927 15926 msgid "Charge %s has been fully refunded in Stripe." 15928 15927 msgstr "" 15929 15928 15930 15929 #. Translators: The charge ID from Stripe that is being partially refunded. 15931 #: includes/gateways/stripe/includes/webhooks.php: 9615930 #: includes/gateways/stripe/includes/webhooks.php:109 15932 15931 msgid "Charge %s partially refunded in Stripe." 15933 15932 msgstr "" 15934 15933 15935 15934 #. translators: %s Stripe Radar review opening reason. 15936 #: includes/gateways/stripe/includes/webhooks.php:1 4215935 #: includes/gateways/stripe/includes/webhooks.php:155 15937 15936 msgid "Stripe Radar review opened with a reason of %s." 15938 15937 msgstr "" 15939 15938 15940 15939 #. translators: %s Stripe Radar review closing reason. 15941 #: includes/gateways/stripe/includes/webhooks.php: 18715940 #: includes/gateways/stripe/includes/webhooks.php:200 15942 15941 msgid "Stripe Radar review closed with a reason of %s." 15943 15942 msgstr "" … … 15990 15989 msgstr "" 15991 15990 15992 #: includes/misc-functions.php:12 1715991 #: includes/misc-functions.php:1237 15993 15992 msgid "Store Bot" 15994 15993 msgstr "" 15995 15994 15996 #: includes/misc-functions.php:14 3715995 #: includes/misc-functions.php:1457 15997 15996 msgid "Verified" 15998 15997 msgstr "" 15999 15998 16000 #: includes/misc-functions.php:14 3815999 #: includes/misc-functions.php:1458 16001 16000 msgid "Spam" 16002 16001 msgstr "" 16003 16002 16004 #: includes/misc-functions.php:14 3916003 #: includes/misc-functions.php:1459 16005 16004 msgid "Deleted" 16006 16005 msgstr "" 16007 16006 16008 #: includes/misc-functions.php:14 4016007 #: includes/misc-functions.php:1460 16009 16008 msgid "Cancelled" 16010 16009 msgstr "" 16011 16010 16012 #: includes/misc-functions.php:15 5416011 #: includes/misc-functions.php:1574 16013 16012 msgid "Please define default parameters in the form of an array." 16014 16013 msgstr "" 16015 16014 16016 #: includes/misc-functions.php:15 5916015 #: includes/misc-functions.php:1579 16017 16016 msgid "Please define an SVG icon filename." 16018 16017 msgstr "" … … 16044 16043 #. Translators: %1$s - type of amount being refunded (subtotal, tax, or total); %1$s - adjustment description; %3$s - maximum amount allowed for refund 16045 16044 #: includes/orders/classes/class-refund-validator.php:390 16046 msgid "The maximum refund % s for the adjustment \"%s\" is %s."16045 msgid "The maximum refund %1$s for the adjustment \"%2$s\" is %3$s." 16047 16046 msgstr "" 16048 16047 … … 17625 17624 msgstr "" 17626 17625 17627 #. translators: %s is the name of the extension.17628 17626 #: src/Admin/Extensions/Legacy.php:45 17629 17627 msgid "%s is now part of EDD!" 17630 17628 msgstr "" 17631 17629 17632 #. translators: %s is the name of the extension.17633 17630 #: src/Admin/Extensions/Legacy.php:50 17634 17631 msgid "The functionality of %s has been merged into Easy Digital Downloads. It has been deactivated and you can safely delete the %s plugin." … … 17695 17692 msgstr "" 17696 17693 17697 #: src/Admin/Onboarding/Steps/Products.php:3 217694 #: src/Admin/Onboarding/Steps/Products.php:38 17698 17695 msgid "Product details" 17699 17696 msgstr "" 17700 17697 17701 #: src/Admin/Onboarding/Steps/Products.php: 3717698 #: src/Admin/Onboarding/Steps/Products.php:43 17702 17699 msgid "We'll get started with some basic information. Don't worry, you can add more details later. When you're finished here, the product will be saved as a draft so you can finish up later." 17703 17700 msgstr "" 17704 17701 17705 #: src/Admin/Onboarding/Steps/Products.php: 4517702 #: src/Admin/Onboarding/Steps/Products.php:51 17706 17703 msgid "Product Name" 17707 17704 msgstr "" 17708 17705 17709 #: src/Admin/Onboarding/Steps/Products.php: 5717706 #: src/Admin/Onboarding/Steps/Products.php:63 17710 17707 msgid "Set image" 17711 17708 msgstr "" 17712 17709 17713 #: src/Admin/Onboarding/Steps/Products.php: 5717710 #: src/Admin/Onboarding/Steps/Products.php:63 17714 17711 msgid "Set Image" 17715 17712 msgstr "" 17716 17713 17717 #: src/Admin/Onboarding/Steps/Products.php:6 317714 #: src/Admin/Onboarding/Steps/Products.php:69 17718 17715 msgid "Pricing Options" 17719 17716 msgstr "" 17720 17717 17721 #: src/Admin/Onboarding/Steps/Products.php: 6717718 #: src/Admin/Onboarding/Steps/Products.php:73 17722 17719 msgid "Single price" 17723 17720 msgstr "" 17724 17721 17725 #: src/Admin/Onboarding/Steps/Products.php: 6817722 #: src/Admin/Onboarding/Steps/Products.php:74 17726 17723 msgid "Variable price" 17727 17724 msgstr "" 17728 17725 17729 #: src/Admin/Onboarding/Steps/Products.php:7 317726 #: src/Admin/Onboarding/Steps/Products.php:79 17730 17727 msgid "Product Price" 17731 17728 msgstr "" 17732 17729 17733 #: src/Admin/Onboarding/Steps/Products.php:1 2717730 #: src/Admin/Onboarding/Steps/Products.php:141 17734 17731 msgid "Add your first file" 17735 17732 msgstr "" 17736 17733 17737 #: src/Admin/Onboarding/Steps/Products.php:1 3617734 #: src/Admin/Onboarding/Steps/Products.php:150 17738 17735 msgid "Ready to add your first downloadable file to your product? Great! These files will be protected and only available to people who purchase your product. Not ready yet? No problem, you can always add and update files later." 17739 17736 msgstr "" 17740 17737 17741 #: src/Admin/Onboarding/Steps/Products.php:1 5217738 #: src/Admin/Onboarding/Steps/Products.php:166 17742 17739 msgid "Congratulations!" 17743 17740 msgstr "" 17744 17741 17745 #: src/Admin/Onboarding/Steps/Products.php:1 5317742 #: src/Admin/Onboarding/Steps/Products.php:167 17746 17743 msgid "You've set up your store and your first product has been created." 17747 17744 msgstr "" 17748 17745 17749 #: src/Admin/Onboarding/Steps/Products.php:1 5417746 #: src/Admin/Onboarding/Steps/Products.php:168 17750 17747 msgid "Edit My Product" 17751 17748 msgstr "" 17752 17749 17753 #: src/Admin/Onboarding/Steps/Products.php:1 5517750 #: src/Admin/Onboarding/Steps/Products.php:169 17754 17751 msgid "Explore Extensions" 17755 17752 msgstr "" … … 18904 18901 18905 18902 #: src/Admin/Settings/Tabs/Gateways.php:229 18906 msgid "Enable Sequent al Numbering"18903 msgid "Enable Sequential Numbering" 18907 18904 msgstr "" 18908 18905 … … 18980 18977 #. translators: %1$s: opening anchor tag, %2$s: closing anchor tag 18981 18978 #: src/Admin/Settings/Tabs/Gateways.php:374 18982 msgid "Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation De ctection, %1$sUpgrade to Pro%2$s."18979 msgid "Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation Detection, %1$sUpgrade to Pro%2$s." 18983 18980 msgstr "" 18984 18981 -
easy-digital-downloads/trunk/readme.txt
r3061317 r3078938 5 5 Tags: ecommerce, payments, sell, digital store, stripe 6 6 Requires at least: 5.8 7 Tested up to: 6. 47 Tested up to: 6.5 8 8 Requires PHP: 7.4 9 Stable Tag: 3.2.1 19 Stable Tag: 3.2.12 10 10 License: GNU Version 2 or Any Later Version 11 11 … … 75 75 * Email Receipts - The included email receipts are fully customizable to ensure that your brand is represented in your receipts. 76 76 * Customer Management - Track your customer lifetime value and purchase history with the included Customer Management system. Quickly access a customer's entire purchase history, add notes, and link to WordPress users. 77 * Refund and Dispute Handling - With our a ccounting friendly store management system, refunds and disputes ensurethat your records are accurate and customers only have access to files when they should.77 * Refund and Dispute Handling - With our automated order management tools, EDD ensures that your records are accurate and customers only have access to files when they should. 78 78 * Customer Profile Editor - Give your users to their purchase history and profile management with the included blocks. 79 79 … … 148 148 = Is there a sample import file I can use to setup a demo store? = 149 149 150 Yes! Simply go to Tools > Import and install the WordPress Importer, then you can use the XML file located at wp-content/plugins/easy-digital-downloads/assets/ and select the sample-products-import.xml file. This will create several sample products and plugin pages for you.150 Yes! Simply go to Tools > Import and install the WordPress Importer, then you can use the sample-products-import.xml file located in wp-content/plugins/easy-digital-downloads/assets/. This will create several sample products and plugin pages for you. 151 151 152 152 = Can I import all the products from my existing store into EDD? = … … 225 225 226 226 == Changelog == 227 = 3.2.12 = 228 * Compatibility: Fixed a conflict between Setup Wizard and the Multi-Currency extension. 229 * Stripe: Improved the handling of refunding charges via the Stripe Dashboard. 230 * Exports: Improved performance, management, and protection of export files generated by EDD. 231 * Emails: Improved the validation before installing the Recapture integration. 232 233 View the full changelog at [https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/](https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/?utm_medium=readme&utm_source=wporg&utm_campaign=edd-plugin&utm_term=description) 234 227 235 = 3.2.11 = 228 236 * Order Management: When searching orders, a Product ID was being erroneously added to the filter arguments when it not have been. 229 230 View the full changelog at [https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/](https://easydigitaldownloads.com/changelogs/plugin/easy-digital-downloads/?utm_medium=readme&utm_source=wporg&utm_campaign=edd-plugin&utm_term=description)231 237 232 238 = 3.2.10 = … … 243 249 * HTML: The Textarea HTML field could add empty content to the value. 244 250 * Checkout: The Privacy Policy checkbox may not always show when expected. 245 * Blocks: Improved loading of Easy Digital Download blocks.246 * Blocks: Improved the handling of Easy Digital Download blocks when using a classic theme.251 * Blocks: Improved loading of Easy Digital Downloads blocks. 252 * Blocks: Improved the handling of Easy Digital Downloads blocks when using a classic theme. 247 253 * Orders: Manually creating orders in the admin could fail to save the order due to a capability check. 248 254 * Migration: Improved the reliability of the EDD 3.0+ migration routine for possibly corrupt serialized data. … … 251 257 = 3.2.9 = 252 258 * Stripe: Resending the purchase receipt could fail if including the Stripe statement descriptor in the email template. 253 * Settings: Improve the reliability of determining the timezone settings in WordPress.259 * Settings: Improved the reliability of determining the timezone settings in WordPress. 254 260 * Reports: When using custom dates for reporting, some timezone settings could make the dates show incorrectly. 255 261 * Emails: Adjusted when the deprecation notices will be shown for the legacy email hooks. … … 390 396 * Fix: EDD Blocks placeholder styles could interfere with WordPress Core placeholders. 391 397 * Fix: Additional, not officially supported fee data is now stored as order adjustment metadata. 392 * Dev: Many filters and hooks that passed EDD_Payment objects now have a compl imentary hook or filter that uses EDD\Orders\Order objects.398 * Dev: Many filters and hooks that passed EDD_Payment objects now have a complementary hook or filter that uses EDD\Orders\Order objects. 393 399 * Dev: Easy Digital Downloads is no longer registering the edd_payment and edd_discount post types. 394 400 * Dev: Easy Digital Downloads – Core now holds the Stripe base code, and Stripe Pro 3.0.0 only contains pro features. -
easy-digital-downloads/trunk/src/Admin/Onboarding/Steps/Products.php
r3036940 r3078938 13 13 14 14 // Exit if accessed directly. 15 defined( 'ABSPATH' ) || exit; 15 defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore 16 16 17 /** 18 * Products step class. 19 */ 17 20 class Products extends Step { 18 21 … … 23 26 */ 24 27 public function step_html() { 25 $currency_position = edd_get_option( 'currency_position', 'before' ); 28 $currency_position = edd_get_option( 'currency_position', 'before' ); 29 // Remove all actions that may have been added by extensions. 30 remove_all_actions( 'edd_after_price_field' ); 31 remove_all_actions( 'edd_download_price_option_row' ); 26 32 ?> 27 33 <form method="post" class="edd-onboarding__create-product-form"> … … 124 130 <div class="edd-form-group__control"> 125 131 <label class="edd-toggle edd-onboarding__upload-files-toggle" for="_edd_upload_files"> 126 <?php echo EDD()->html->checkbox( array( 'name' => '_edd_upload_files', 'current' => null, 'class' => 'edd-form-group__input', ) ); ?> 132 <?php 133 echo EDD()->html->checkbox( 134 array( 135 'name' => '_edd_upload_files', 136 'current' => null, 137 'class' => 'edd-form-group__input', 138 ) 139 ); 140 ?> 127 141 <span><?php echo esc_html_e( 'Add your first file', 'easy-digital-downloads' ); ?></span> 128 142 </label> -
easy-digital-downloads/trunk/src/Admin/Settings/Tabs/Gateways.php
r3036940 r3078938 227 227 'enable_sequential' => array( 228 228 'id' => 'enable_sequential', 229 'name' => __( 'Enable Sequent al Numbering', 'easy-digital-downloads' ),229 'name' => __( 'Enable Sequential Numbering', 'easy-digital-downloads' ), 230 230 'check' => __( 'Check this box to enable sequential order numbers.', 'easy-digital-downloads' ), 231 231 'desc' => __( 'Does not impact previous orders. Future orders will be sequential.', 'easy-digital-downloads' ), … … 372 372 return sprintf( 373 373 /* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */ 374 __( 'Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation De ctection, %1$sUpgrade to Pro%2$s.', 'easy-digital-downloads' ),374 __( 'Increase conversions by auto-filling address information for customers during checkout. To enable GeoLocation Detection, %1$sUpgrade to Pro%2$s.', 'easy-digital-downloads' ), 375 375 '<a href="' . $upgrade_link . '" class="edd-pro-upgrade" target="_blank">', 376 376 '</a>'
Note: See TracChangeset
for help on using the changeset viewer.