updated plugin `Easy Digital Downloads` version 3.1.1.3

This commit is contained in:
KawaiiPunk 2023-03-29 18:20:17 +00:00 committed by Gitium
parent 2573ae37c7
commit e42ba0e05a
20 changed files with 234 additions and 155 deletions

View File

@ -5,9 +5,9 @@
* Description: The easiest way to sell digital products with WordPress.
* Author: Easy Digital Downloads
* Author URI: https://easydigitaldownloads.com
* Version: 3.1.1.2
* Version: 3.1.1.3
* Text Domain: easy-digital-downloads
* Domain Path: languages
* Domain Path: /languages
* Requires at least: 5.4
* Requires PHP: 7.1
*
@ -27,7 +27,7 @@
* @package EDD
* @category Core
* @author Easy Digital Downloads
* @version 3.1.1.2
* @version 3.1.1.3
*/
// Exit if accessed directly.

View File

@ -858,6 +858,12 @@ class EDD_Payment_History_Table extends List_Table {
'type' => $type,
) );
// If no specific ordering has been requested, order by `date_created`.
if ( empty( $_GET['orderby'] ) ) {
$args['orderby'] = 'date_created';
$args['order'] = 'DESC';
}
// Update args by search query.
if ( ! empty( $search ) ) {
$args = $this->parse_search( $search, $args );

View File

@ -355,7 +355,7 @@ final class Easy_Digital_Downloads {
// Plugin version.
if ( ! defined( 'EDD_VERSION' ) ) {
define( 'EDD_VERSION', '3.1.1.2' );
define( 'EDD_VERSION', '3.1.1.3' );
}
// Make sure CAL_GREGORIAN is defined.

View File

@ -69,9 +69,6 @@ final class EDD_Requirements_Check {
$this->file = EDD_PLUGIN_FILE;
$this->base = EDD_PLUGIN_BASE;
// Always load translations
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
// Load or quit
$this->met()
? $this->load()
@ -416,6 +413,9 @@ final class EDD_Requirements_Check {
/**
* Plugin specific text-domain loader.
*
* @deprecated 3.1.1.3. Since EDD no longer bundles any language files,
* and WordPress Core automatically loads the custom wp-content/languages/easy-digital-downloads/.mo file if it's found,
* this is no longer needed.
* @since 1.4
* @return void
*/
@ -492,6 +492,7 @@ final class EDD_Requirements_Check {
/**
* Load a .mo file for the old textdomain if one exists.
*
* @deprecated 3.1.1.3
* @see https://github.com/10up/grunt-wp-plugin/issues/21#issuecomment-62003284
*/
public function load_old_textdomain( $mofile, $textdomain ) {

View File

@ -846,30 +846,8 @@ abstract class Table extends Base {
*/
private function get_db_version() {
$this->db_version = $this->is_global()
? get_network_option( get_main_network_id(), $this->db_version_key, false )
: get_option( $this->db_version_key, false );
/**
* If the DB version is higher than the stated version and is 12 digits
* long, we need to update it to our new, shorter format of 9 digits.
*
* This is only for 3.0 beta testers, and can be removed in 3.0.1 or above.
*
* @link https://github.com/easydigitaldownloads/easy-digital-downloads/issues/7579
*/
if ( version_compare( $this->db_version, $this->version, '<=' ) || ( 12 !== strlen( $this->db_version ) ) ) {
return;
}
// Parse the new version number from the existing. Converting from
// {YYYY}{mm}{dd}{xxxx} to {YYYY}{mm}{dd}{x}
$date = substr( $this->db_version, 0, 8 );
$increment = substr( $this->db_version, 8, 4 );
// Trims off the three prefixed zeros.
$this->db_version = intval( $date . intval( $increment ) );
$this->set_db_version( $this->db_version );
? get_network_option( get_main_network_id(), $this->db_version_key, 1 )
: get_option( $this->db_version_key, 1 );
}
/**

View File

@ -38,7 +38,7 @@ final class Customers extends Table {
* @since 3.0
* @var int
*/
protected $version = 202301021;
protected $version = 202303220;
/**
* Array of upgrade versions and methods
@ -48,9 +48,9 @@ final class Customers extends Table {
* @var array
*/
protected $upgrades = array(
'202002141' => 202002141,
'202006101' => 202006101,
'202301021' => 202301021,
'202303220' => 202303220,
);
/**
@ -248,4 +248,18 @@ final class Customers extends Table {
return $this->is_success( $return_result );
}
/**
* Upgrades the customer database for sites which got into a bit of a snarl with the database versions.
*
* @since 3.1.1.3
* @return bool
*/
protected function __202303220() {
if ( $this->needs_initial_upgrade() ) {
return $this->__202301021();
}
return true;
}
}

View File

@ -3,7 +3,7 @@
* Plugin Name: Easy Digital Downloads - Stripe Pro Payment Gateway
* Plugin URI: https://easydigitaldownloads.com/downloads/stripe-gateway/
* Description: Adds a payment gateway for Stripe.com
* Version: 2.9.2
* Version: 2.9.2.1
* Requires at least: 5.4
* Requires PHP: 7.1
* Author: Easy Digital Downloads
@ -44,7 +44,7 @@ function edd_stripe_core_bootstrap() {
}
if ( ! defined( 'EDD_STRIPE_VERSION' ) ) {
define( 'EDD_STRIPE_VERSION', '2.9.2' );
define( 'EDD_STRIPE_VERSION', '2.9.2.1' );
}
if ( ! defined( 'EDD_STRIPE_API_VERSION' ) ) {

View File

@ -112,12 +112,16 @@ function edds_add_settings( $settings ) {
'type' => 'text',
),
'stripe_restrict_assets' => array(
'id' => 'stripe_restrict_assets',
'name' => ( __( 'Restrict Stripe Assets', 'easy-digital-downloads' ) ),
'desc' => ( __( 'Only load Stripe.com hosted assets on pages that specifically utilize Stripe functionality.', 'easy-digital-downloads' ) ),
'type' => 'checkbox',
'tooltip_title' => __( 'Loading Javascript from Stripe', 'easy-digital-downloads' ),
'tooltip_desc' => __( 'Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. Read more about Stripe\'s recommended setup here: https://stripe.com/docs/web/setup.', 'easy-digital-downloads' ),
'id' => 'stripe_restrict_assets',
'name' => ( __( 'Restrict Stripe Assets', 'easy-digital-downloads' ) ),
'check' => ( __( 'Only load Stripe.com hosted assets on pages that specifically utilize Stripe functionality.', 'easy-digital-downloads' ) ),
'type' => 'checkbox_description',
'desc' => sprintf(
/* translators: 1. opening link tag; 2. closing link tag */
__( 'Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. %1$sLearn more about Stripe\'s recommended setup.%2$s', 'easy-digital-downloads' ),
'<a href="https://stripe.com/docs/web/setup" target="_blank" rel="noopener noreferrer">',
'</a>'
),
),
);

View File

@ -226,14 +226,15 @@ function edds_get_stripe_payment_elements_fonts() {
*/
function edds_gather_payment_element_customizations() {
$customizations = array(
'theme' => edds_get_stripe_payment_elements_theme(),
'variables' => edds_get_stripe_payment_elements_variables(),
'rules' => edds_get_stripe_payment_elements_rules(),
'layout' => edds_get_stripe_payment_elements_layout(),
'wallets' => edds_get_stripe_payment_elements_wallets(),
'labels' => edds_get_stripe_payment_elements_label_style(),
'fonts' => edds_get_stripe_payment_elements_fonts(),
'i18n' => array(
'theme' => edds_get_stripe_payment_elements_theme(),
'variables' => edds_get_stripe_payment_elements_variables(),
'rules' => edds_get_stripe_payment_elements_rules(),
'layout' => edds_get_stripe_payment_elements_layout(),
'wallets' => edds_get_stripe_payment_elements_wallets(),
'labels' => edds_get_stripe_payment_elements_label_style(),
'fonts' => edds_get_stripe_payment_elements_fonts(),
'paymentMethodTypes' => edds_payment_element_payment_method_types(),
'i18n' => array(
'errorMessages' => edds_get_localized_error_messages(),
),
);
@ -260,3 +261,37 @@ function edds_payment_element_js_vars( $stripe_vars ) {
return $stripe_vars;
}
add_filter( 'edd_stripe_js_vars', 'edds_payment_element_js_vars', 10, 1 );
/**
* Returns an array of payment method types.
*
* By default this is empty to allow the automatic payment methods to take over, but in the event someone
* wants to alter this, they can at their own risk as EDD controls what payment methods are availbale
* at the platform level.
*
* As of 2.9.2.1 - EDD only supports 'card' and 'link' as options.
*
* @since 2.9.2.1
*
* @return array The allowed payment_method_types
*/
function edds_payment_element_payment_method_types() {
/**
* Allows passing payment_method_types to the elements and intent.
*
* This is by default empty, but you can alter this on an account level if needed.
*
* @since 2.9.2.1
*
* @example
* add_filter( 'edds_stripe_payment_elements_payment_method_types', function( $payment_method_types ) {
* return array(
* 'card',
* 'link',
* );
* } );
*
* @param array The allowed payment elements payment method types.
*/
return apply_filters( 'edds_stripe_payment_elements_payment_method_types', array() );
}

View File

@ -152,12 +152,13 @@ function edds_process_purchase_form( $purchase_data ) {
if ( ! empty( $_REQUEST['payment_method_id'] ) ) {
$intent_args['payment_method'] = sanitize_text_field( $_REQUEST['payment_method_id'] );
} else {
$payment_method_types = array(
'card',
'link',
);
$payment_method_types = edds_payment_element_payment_method_types();
$intent_args['payment_method_types'] = $payment_method_types;
if ( ! empty( $payment_method_types ) ) {
$intent_args['payment_method_types'] = $payment_method_types;
} else {
$intent_args['automatic_payment_methods'] = array( 'enabled' => true );
}
}
// Create a SetupIntent for a non-payment carts.

View File

@ -3,7 +3,7 @@
'name' => 'easy-digital-downloads/edd-stripe',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'a63eec57c1f5da47c09cc9cd8cf4162f8c65652a',
'reference' => '47178f1567076390fc6f41a5c5ebdf986b915165',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@ -13,7 +13,7 @@
'easy-digital-downloads/edd-stripe' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'a63eec57c1f5da47c09cc9cd8cf4162f8c65652a',
'reference' => '47178f1567076390fc6f41a5c5ebdf986b915165',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),

View File

@ -848,7 +848,7 @@ function edd_process_profile_editor_updates( $data ) {
$customers = edd_get_customers(
array(
'email' => $email,
'user_id__not_in' => $user_id,
'user_id__not_in' => array( $user_id ),
)
);
// Make sure the new email doesn't belong to another user.

View File

@ -2,14 +2,14 @@
# This file is distributed under the same license as the Easy Digital Downloads plugin.
msgid ""
msgstr ""
"Project-Id-Version: Easy Digital Downloads 3.1.1.2\n"
"Project-Id-Version: Easy Digital Downloads 3.1.1.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-digital-downloads\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-03-17T17:50:58+00:00\n"
"POT-Creation-Date: 2023-03-23T21:29:08+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.7.1\n"
"X-Domain: easy-digital-downloads\n"
@ -17,7 +17,7 @@ msgstr ""
#. Plugin Name of the plugin
#. Author of the plugin
#: includes/blocks/includes/functions.php:27
#: src/Admin/Onboarding/Steps/Tools.php:139
#: src/Admin/Onboarding/Steps/Tools.php:128
msgid "Easy Digital Downloads"
msgstr ""
@ -2685,16 +2685,16 @@ msgstr ""
msgid "Move to Trash"
msgstr ""
#: includes/admin/payments/class-payments-table.php:1097
#: includes/admin/payments/class-payments-table.php:1100
#: includes/admin/payments/class-payments-table.php:1103
#: includes/admin/payments/class-payments-table.php:1106
msgid "Confirmation Required"
msgstr ""
#: includes/admin/payments/class-payments-table.php:1098
#: includes/admin/payments/class-payments-table.php:1104
msgid "You are about to permanently delete orders from your store. Once deleted, these orders are not recoverable. Are you sure you want to continue?"
msgstr ""
#: includes/admin/payments/class-payments-table.php:1101
#: includes/admin/payments/class-payments-table.php:1107
msgid "You are about to permanently delete this order from your store. Once deleted, this order is not recoverable. Are you sure you want to continue?"
msgstr ""
@ -6100,7 +6100,7 @@ msgstr ""
#: includes/admin/tracking.php:145
#: includes/admin/tracking.php:270
#: src/Admin/Onboarding/Steps/Tools.php:86
#: src/Admin/Onboarding/Steps/Tools.php:241
msgid "Join the EDD Community"
msgstr ""
@ -6117,7 +6117,7 @@ msgid "Do not allow"
msgstr ""
#: includes/admin/tracking.php:290
#: src/Admin/Onboarding/Steps/Tools.php:90
#: src/Admin/Onboarding/Steps/Tools.php:245
msgid "Help us provide a better experience and faster fixes by sharing some anonymous data about how you use Easy Digital Downloads."
msgstr ""
@ -8504,23 +8504,23 @@ msgstr ""
msgid "The date this payment was changed to the `completed` status."
msgstr ""
#: includes/class-edd-requirements-check.php:165
#: includes/class-edd-requirements-check.php:162
msgid "This plugin is not fully active."
msgstr ""
#: includes/class-edd-requirements-check.php:175
#: includes/class-edd-requirements-check.php:172
msgid "Requires %1$s (%2$s), but (%3$s) is installed."
msgstr ""
#: includes/class-edd-requirements-check.php:185
#: includes/class-edd-requirements-check.php:182
msgid "Requires %1$s (%2$s), but it appears to be missing."
msgstr ""
#: includes/class-edd-requirements-check.php:195
#: includes/class-edd-requirements-check.php:192
msgid "Requirements"
msgstr ""
#: includes/class-edd-requirements-check.php:205
#: includes/class-edd-requirements-check.php:202
msgid "Easy Digital Download Requirements"
msgstr ""
@ -10487,8 +10487,8 @@ msgid "In order to be compatible with future versions of the Stripe payment gate
msgstr ""
#: includes/gateways/stripe/includes/admin/notices/php-requirement.php:84
#: includes/gateways/stripe/includes/admin/settings.php:330
#: includes/gateways/stripe/includes/admin/settings.php:399
#: includes/gateways/stripe/includes/admin/settings.php:334
#: includes/gateways/stripe/includes/admin/settings.php:403
msgid "Need help upgrading? Ask your web host!"
msgstr ""
@ -10591,86 +10591,83 @@ msgstr ""
msgid "Only load Stripe.com hosted assets on pages that specifically utilize Stripe functionality."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:119
msgid "Loading Javascript from Stripe"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:120
msgid "Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. Read more about Stripe's recommended setup here: https://stripe.com/docs/web/setup."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:130
msgid "Elements Mode"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:131
msgid "Toggle between using the legacy Card Elements Stripe integration and the new Payment Elements experience."
#. translators: 1. opening link tag; 2. closing link tag
#: includes/gateways/stripe/includes/admin/settings.php:121
msgid "Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. %1$sLearn more about Stripe's recommended setup.%2$s"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:134
msgid "Card Element"
msgid "Elements Mode"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:135
msgid "Payment Element"
msgid "Toggle between using the legacy Card Elements Stripe integration and the new Payment Elements experience."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:138
msgid "Transitioning to Payment Elements"
msgid "Card Element"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:139
msgid "Payment Element"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:142
msgid "Transitioning to Payment Elements"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:143
msgid "You are seeing this option because your store has been using Card Elements prior to the EDD Stripe 2.9.0 update.<br /><br />To ensure that we do not affect your current checkout experience, you can use this setting to toggle between the Card Elements (legacy) and Payment Elements (updated version) to ensure that any customizations or theming you have done still function properly.<br /><br />Please be advised, that in a future version of the Stripe extension, we will deprecate the Card Elements, so take this time to update your store!"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:145
#: includes/gateways/stripe/includes/admin/settings.php:158
#: includes/gateways/stripe/includes/admin/settings.php:149
#: includes/gateways/stripe/includes/admin/settings.php:162
msgid "Prepaid Cards"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:146
#: includes/gateways/stripe/includes/admin/settings.php:150
msgid "Allow prepaid cards as valid payment method."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:160
#: includes/gateways/stripe/includes/admin/settings.php:164
msgid "Prepaid card allowance can now be managed in your <a href=\"%s\" target=\"_blank\">Stripe Radar Rules</a>."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:169
#: includes/gateways/stripe/includes/admin/settings.php:173
msgid "Split Credit Card Form"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:170
#: includes/gateways/stripe/includes/admin/settings.php:174
msgid "Use separate card number, expiration, and CVC fields in payment forms."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:177
#: includes/gateways/stripe/includes/admin/settings.php:185
#: includes/gateways/stripe/includes/admin/settings.php:181
#: includes/gateways/stripe/includes/admin/settings.php:189
msgid "Show Previously Used Cards"
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:178
#: includes/gateways/stripe/includes/admin/settings.php:182
msgid "Provides logged in customers with a list of previous used payment methods for faster checkout."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:187
#: includes/gateways/stripe/includes/admin/settings.php:191
msgid "Previously used cards are now managed by <a href=\"%s\" target=\"_blank\">Link by Stripe</a>, for even better conversions and security."
msgstr ""
#: includes/gateways/stripe/includes/admin/settings.php:201
#: includes/gateways/stripe/includes/admin/settings.php:205
msgid "You have disabled the \"Test Mode\" option. Once you have saved your changes, please verify your Stripe connection, especially if you have not previously connected in with \"Test Mode\" disabled."
msgstr ""
#. translators: %1$s Future PHP version requirement. %2$s Current PHP version. %3$s Opening strong tag, do not translate. %4$s Closing strong tag, do not translate.
#. translators: %1$s PHP version requirement. %2$s Current PHP version. %3$s Opening strong tag, do not translate. %4$s Closing strong tag, do not translate.
#: includes/gateways/stripe/includes/admin/settings.php:312
#: includes/gateways/stripe/includes/admin/settings.php:384
#: includes/gateways/stripe/includes/admin/settings.php:316
#: includes/gateways/stripe/includes/admin/settings.php:388
msgid "Processing credit cards with Stripe requires PHP version %1$s or higher. It looks like you're using version %2$s, which means you will need to %3$supgrade your version of PHP before acceping credit card payments%4$s."
msgstr ""
#. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate.
#: includes/gateways/stripe/includes/admin/settings.php:336
#: includes/gateways/stripe/includes/admin/settings.php:404
#: includes/gateways/stripe/includes/admin/settings.php:340
#: includes/gateways/stripe/includes/admin/settings.php:408
msgid "Many web hosts can give you instructions on how/where to upgrade your version of PHP through their control panel, or may even be able to do it for you. If you need to change hosts, please see %1$sour hosting recommendations%2$s."
msgstr ""
@ -11087,7 +11084,7 @@ msgstr ""
#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:713
#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:919
#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1056
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:656
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:657
msgid "Stripe Error"
msgstr ""
@ -11130,43 +11127,43 @@ msgstr ""
msgid "Charge not refunded in Stripe, as checkbox was not selected."
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:304
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:305
msgid "Stripe Error 002"
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:306
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:307
msgid "There was an error while processing a Stripe payment. Order data: %s"
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:322
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:323
msgid "Stripe Error 003"
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:357
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:358
msgid "Error 1001: An error occurred, but your payment may have gone through. Please contact the site administrator."
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:368
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:369
msgid "Error 1002: An error occurred, but your payment may have gone through. Please contact the site administrator."
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:380
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:381
msgid "Error 1003: An error occurred, but your payment may have gone through. Please contact the site administrator."
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:392
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:393
msgid "Error 1004: An error occurred, but your payment may have gone through. Please contact the site administrator."
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:409
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:410
msgid "Error 1005: An error occurred, but your payment may have gone through. Please contact the site administrator."
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:441
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:442
msgid "Error 1006: An error occurred, but your payment may have gone through. Please contact the site administrator."
msgstr ""
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:634
#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:635
msgid "Error 1007: An error occurred completing the order, but your payment may have gone through. Please contact the site administrator."
msgstr ""
@ -13263,64 +13260,64 @@ msgstr ""
msgid "You already have a solution installed for this feature."
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:98
#: src/Admin/Onboarding/Steps/Tools.php:87
msgid "Based on your selection above, the following plugins will be installed:"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:102
#: src/Admin/Onboarding/Steps/Tools.php:91
msgid "Some features were not able to be installed!"
msgstr ""
#. translators: list of plugins that were not able to be installed or activated
#: src/Admin/Onboarding/Steps/Tools.php:107
#: src/Admin/Onboarding/Steps/Tools.php:96
msgid "Don't worry, everything will still work without them! You can install %s later by going to Plugins > Add New."
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:112
#: src/Admin/Onboarding/Steps/Tools.php:101
msgid "Continue"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:118
#: src/Admin/Onboarding/Steps/Tools.php:107
msgid "Plugins were successfully installed!"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:134
#: src/Admin/Onboarding/Steps/Tools.php:123
msgid "Essential eCommerce Features"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:135
#: src/Admin/Onboarding/Steps/Tools.php:124
msgid "Get all the essential eCommerce features to sell digital products with WordPress."
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:146
#: src/Admin/Onboarding/Steps/Tools.php:135
msgid "Optimize Checkout"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:147
#: src/Admin/Onboarding/Steps/Tools.php:136
msgid "Improve the checkout experience by auto-creating user accounts for new customers."
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:156
#: src/Admin/Onboarding/Steps/Tools.php:145
msgid "Reliable Email Delivery"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:157
#: src/Admin/Onboarding/Steps/Tools.php:146
msgid "Email deliverability is one of the most important services for an eCommerce store. Dont leave your customers in the dark."
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:169
#: src/Admin/Onboarding/Steps/Tools.php:158
msgid "Analytics Tools"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:170
#: src/Admin/Onboarding/Steps/Tools.php:159
msgid "Get the #1 analytics plugin to see useful information about your visitors right inside your WordPress dashboard."
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:186
#: src/Admin/Onboarding/Steps/Tools.php:175
msgid "SEO"
msgstr ""
#: src/Admin/Onboarding/Steps/Tools.php:187
#: src/Admin/Onboarding/Steps/Tools.php:176
msgid "Get the tools used by millions of smart business owners to analyze and optimize their stores traffic with SEO."
msgstr ""

View File

@ -4,9 +4,9 @@ Plugin URI: https://easydigitaldownloads.com
Contributors: easydigitaldownloads, am, cklosows, littlerchicken, smub, mordauk, sunnyratilal, chriscct7, section214, sumobi, sdavis2702, mindctrl, sksmatt, SpencerFinnell, johnstonphilip, brashrebel, drewapicture, johnjamesjacoby, nosegraze, lisacee, zkawesome
Tags: ecommerce, payments, sell, digital store, stripe
Requires at least: 5.4
Tested up to: 6.1
Tested up to: 6.2
Requires PHP: 7.1
Stable Tag: 3.1.1.2
Stable Tag: 3.1.1.3
License: GNU Version 2 or Any Later Version
Sell your digital products with the #1 eCommerce plugin written for digital creators by digital creators.
@ -226,6 +226,15 @@ Yes, with an Extended Pass you get access to [Recurring Payments](https://easydi
== Changelog ==
= 3.1.1.3, March 23, 2023 =
* Improvement: The orders list table in the admin now sorts orders by date as the default.
* Improvement: Removed unnecessary options in the onboarding wizard.
* Improvement - Stripe: Store owners can now [control which payment methods to accept within their Stripe account](https://easydigitaldownloads.com/docs/stripe/#how-to-manage-payment-methods).
* Improvement - Stripe: We've added a better explanation for the Restrict Stripe Assets setting.
* Change: Translations are now always managed by WordPress.org.
* Fix: Existing tables might not have been updated correctly.
* Fix: Attempting to update the default email address from the profile editor could fail in some circumstances.
= 3.1.1.2, March 17, 2023 =
* Improvement: The order details screen in the admin has been updated to use the Currency class to be consistent with customer receipts.
* Improvement: Determining whether a plugin is a core extension for telemetry data has been improved.

View File

@ -81,18 +81,7 @@ class Tools extends Step {
?>
</div>
<div class="edd-onboarding__get-suggestions-section">
<h3>
<?php esc_html_e( 'Join the EDD Community', 'easy-digital-downloads' ); ?>
</h3>
<label for="edd-onboarding__telemery-toggle" class="edd-onboarding__get-suggestions-section_label">
<?php esc_html_e( 'Help us provide a better experience and faster fixes by sharing some anonymous data about how you use Easy Digital Downloads.', 'easy-digital-downloads' ); ?>
</label>
<div class="edd-toggle">
<input type="checkbox" id="edd-onboarding__telemery-toggle" class="edd-onboarding__get-suggestions-section_input" name="telemetry" value="1" checked>
</div>
</div>
<?php $this->telemetry(); ?>
<div class="edd-onboarding__selected-plugins">
<p><?php esc_html_e( 'Based on your selection above, the following plugins will be installed:', 'easy-digital-downloads' ); ?> <span class="edd-onboarding__selected-plugins-text"></span></p>
@ -235,4 +224,30 @@ class Tools extends Step {
return $available_plugins;
}
/**
* Outputs the telemetry checkbox.
*
* @since 3.1.1.3
* @return void
*/
private function telemetry() {
if ( edd_is_pro() ) {
return;
}
?>
<div class="edd-onboarding__get-suggestions-section">
<h3>
<?php esc_html_e( 'Join the EDD Community', 'easy-digital-downloads' ); ?>
</h3>
<label for="edd-onboarding__telemery-toggle" class="edd-onboarding__get-suggestions-section_label">
<?php esc_html_e( 'Help us provide a better experience and faster fixes by sharing some anonymous data about how you use Easy Digital Downloads.', 'easy-digital-downloads' ); ?>
</label>
<div class="edd-toggle">
<input type="checkbox" id="edd-onboarding__telemery-toggle" class="edd-onboarding__get-suggestions-section_input" name="telemetry" value="1" checked>
</div>
</div>
<?php
}
}

View File

@ -38,7 +38,7 @@ final class Notifications extends Table {
* @since 3.1.1
* @var int
*/
protected $version = 202302131;
protected $version = 202303220;
/**
* Array of upgrade versions and methods
@ -48,8 +48,7 @@ final class Notifications extends Table {
* @var array
*/
protected $upgrades = array(
'202301251' => 202301251,
'202302131' => 202302131,
'202303220' => 202303220,
);
/**
@ -103,8 +102,6 @@ final class Notifications extends Table {
'remote-id' => false,
);
$columns = $this->get_db()->get_results( "SHOW FIELDS FROM {$this->table_name} WHERE Field = 'remote_id';" );
if ( false === $this->column_exists( 'source' ) ) {
$source = $this->get_db()->query(
"ALTER TABLE {$this->table_name} ADD COLUMN `source` varchar(20) NOT NULL DEFAULT 'api' AFTER `remote_id`;"
@ -134,4 +131,16 @@ final class Notifications extends Table {
return true;
}
/**
* Runs another database upgrade for sites which got into a bit of a snarl with the database versions.
*
* @since 3.1.1.3
* @return bool
*/
protected function __202303220() {
$this->__202301251();
return $this->__202302131();
}
}

View File

@ -36,6 +36,9 @@ class Licenses {
* @return array
*/
private function get_pro_license() {
if ( ! edd_is_pro() ) {
return false;
}
$pro_license = new License( 'pro' );
return array(

View File

@ -30,8 +30,15 @@ class Settings {
foreach ( $section_settings as $setting_key => $setting ) {
$value = $this->get_setting_value( $tab_key, $section_key, $setting_key );
// If the value is null, it's a skipped setting.
if ( ! is_null( $value ) ) {
$setting_id = isset( $setting['id'] ) ? $setting['id'] : sanitize_title( $setting['name'] );
if ( is_null( $value ) ) {
continue;
}
$setting_id = isset( $setting['id'] ) ? $setting['id'] : sanitize_title( $setting['name'] );
if ( is_array( $value ) ) {
foreach ( $value as $v ) {
$data[ "{$setting_id}_{$v}" ] = 1;
}
} else {
$data[ $setting_id ] = $value;
}
}

View File

@ -3,7 +3,7 @@
'name' => 'easydigitaldownloads/easy-digital-downloads',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '6900e8959df5a7b66fb1c4c033324d2f92f4b97e',
'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@ -13,7 +13,7 @@
'easydigitaldownloads/easy-digital-downloads' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '6900e8959df5a7b66fb1c4c033324d2f92f4b97e',
'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),