updated plugin Easy Digital Downloads version 3.1.1.2

This commit is contained in:
2023-03-17 22:34:04 +00:00
committed by Gitium
parent e8a66564bd
commit 19e086d1c4
647 changed files with 20986 additions and 27305 deletions
wp-content/plugins/easy-digital-downloads
assets
css
images
js
admin
edd-admin-customers.jsedd-admin-dashboard.jsedd-admin-discounts.jsedd-admin-downloads.jsedd-admin-email-tags.jsedd-admin-extension-manager.jsedd-admin-licensing.jsedd-admin-notes.jsedd-admin-notices.jsedd-admin-onboarding.jsedd-admin-orders.jsedd-admin-orders.js.mapedd-admin-pass-handler.jsedd-admin-payments.jsedd-admin-reports.jsedd-admin-settings.jsedd-admin-tax-rates.jsedd-admin-tax-rates.js.mapedd-admin-tools-export.jsedd-admin-tools-import.jsedd-admin-tools.jsedd-admin-upgrades.jsedd-admin.jsedd-ajax.jsedd-checkout-global.js
frontend
checkout
components
agree-to-terms
index.jsutils.js
edd-ajax.js
gateways
packages
paypal-checkout.js
utils
lite
easy-digital-downloads.php
includes
admin
ajax-functions.php
blocks
class-easy-digital-downloads.phpclass-edd-cli.phpclass-edd-license-handler.phpclass-edd-requirements-check.phpclass-stats.phpcomponent-functions.php
database
deprecated-functions.phpdiscount-functions.phpdownload-functions.php
emails
extensions
formatting.php
gateways
paypal-standard.php
paypal
stripe
assets
edd-stripe.php
includes
vendor
autoload.php
composer
stripe
stripe-php
CHANGELOG.mdMakefileREADME.mdVERSIONcomposer.jsoninit.php
lib
Account.php
ApiOperations
ApiRequestor.phpApiResource.phpApplicationFee.phpApplicationFeeRefund.phpBalance.phpBalanceTransaction.phpBankAccount.phpBaseStripeClient.phpBaseStripeClientInterface.php
BillingPortal
BitcoinReceiver.phpCapability.phpCard.phpCashBalance.phpCharge.php
Checkout
Collection.phpCoupon.phpCreditNote.phpCreditNoteLineItem.phpCustomer.phpDiscount.phpEphemeralKey.phpErrorObject.phpEvent.phpFile.php
FinancialConnections
FundingInstructions.php
HttpClient
Identity
Invoice.phpInvoiceItem.phpInvoiceLineItem.php
Issuing
LineItem.phpOrder.phpPaymentIntent.phpPaymentLink.phpPaymentMethod.phpPayout.phpPerson.phpPlan.phpPrice.phpProduct.phpPromotionCode.phpQuote.php
Radar
Recipient.phpRefund.php
Reporting
Review.phpSKU.phpSearchResult.php
Service
AbstractService.phpAccountService.phpApplePayDomainService.phpApplicationFeeService.phpBalanceTransactionService.php
BillingPortal
ChargeService.php
Checkout
CoreServiceFactory.phpCountrySpecService.phpCouponService.phpCreditNoteService.phpCustomerService.phpDisputeService.phpEventService.phpExchangeRateService.phpFileLinkService.phpFileService.php
FinancialConnections
Identity
InvoiceItemService.phpInvoiceService.php
Issuing
OrderReturnService.phpOrderService.phpPaymentIntentService.phpPaymentLinkService.phpPaymentMethodService.phpPayoutService.phpPlanService.phpPriceService.phpProductService.phpPromotionCodeService.phpQuoteService.php
Radar
RefundService.php
Reporting
ReviewService.phpSetupAttemptService.phpSetupIntentService.phpShippingRateService.php
Sigma
SkuService.phpSubscriptionItemService.phpSubscriptionScheduleService.phpSubscriptionService.phpTaxCodeService.phpTaxRateService.php
Terminal
TestHelpers
TopupService.phpTransferService.phpWebhookEndpointService.php
SetupAttempt.phpSetupIntent.phpShippingRate.phpSingletonApiResource.phpSource.phpStripe.phpStripeClient.phpStripeClientInterface.phpStripeObject.phpStripeStreamingClientInterface.phpSubscription.phpSubscriptionItem.phpSubscriptionSchedule.phpTaxCode.phpTaxId.phpTaxRate.php
Terminal
TestHelpers
Token.phpTopup.phpTransfer.phpTransferReversal.php
Util
WebhookSignature.php
phpstan-baseline.neonphpstan.neon.distupdate_certs.php
install.phpmisc-functions.php
orders
functions
payments
process-purchase.phpscripts.phpshortcodes.phptemplate-functions.phpuser-functions.php
users
languages
readme.txt
src
templates
uninstall.php
vendor

@ -513,33 +513,40 @@ class EDD_Batch_Payments_Import extends EDD_Batch_Import {
* Look up Download by title and create one if none is found
*
* @since 2.6
* @return int Download ID
* @return int|false Download ID or false if the download could not be created.
*/
private function maybe_create_download( $title = '' ) {
if( ! is_string( $title ) ) {
if ( ! is_string( $title ) ) {
return false;
}
$download = get_page_by_title( $title, OBJECT, 'download' );
if( $download ) {
$download_id = $download->ID;
} else {
$args = array(
'post_type' => 'download',
'post_title' => $title,
'post_author' => get_current_user_id()
);
$download_id = wp_insert_post( $args );
$download = new WP_Query(
array(
'post_type' => 'download',
'title' => $title,
'post_status' => 'all',
'posts_per_page' => 1,
'no_found_rows' => true,
'ignore_sticky_posts' => true,
'update_post_term_cache' => false,
'update_post_meta_cache' => false,
'orderby' => 'post_date ID',
'order' => 'ASC',
)
);
if ( ! empty( $download->post ) ) {
return $download->post->ID;
}
return $download_id;
$args = array(
'post_type' => 'download',
'post_title' => $title,
'post_author' => get_current_user_id(),
);
return wp_insert_post( $args );
}
/**