installed plugin Easy Digital Downloads version 3.1.0.3

This commit is contained in:
2022-11-27 15:03:07 +00:00
committed by Gitium
parent 555673545b
commit c5dce2cec6
1200 changed files with 238970 additions and 0 deletions
wp-content/plugins/easy-digital-downloads
assets
css
images
js
admin
alpine.min.jsedd-admin-customers.jsedd-admin-dashboard.jsedd-admin-discounts.jsedd-admin-downloads.jsedd-admin-email-tags.jsedd-admin-extension-manager.jsedd-admin-notes.jsedd-admin-notices.jsedd-admin-orders.jsedd-admin-orders.js.mapedd-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
jquery.validate.min.js
packages
paypal-checkout.js
utils
vendor
wp-polyfill.min.js
sample-products-import.xml
easy-digital-downloads.php
includes
EDD_SL_Plugin_Updater.phpactions.php
adjustments
admin
add-ons.php
adjustments
admin-actions.phpadmin-bar.phpadmin-deprecated-functions.phpadmin-footer.phpadmin-pages.phpclass-api-keys-table.phpclass-edd-heartbeat.phpclass-edd-notices.phpclass-list-table.phpclass-pass-manager.phpclass-sections.php
customers
dashboard-widgets.php
discounts
downloads
emails
extensions
import
installers
notes
payments
plugins.php
promos
reporting
settings
thickbox.phptools.php
tools
tracking.php
upgrades
upload-functions.php
views
ajax-functions.php
api
blocks
assets
build
edd-blocks.php
includes
readme.md
views
cart
checkout
class-base-object.phpclass-component.phpclass-easy-digital-downloads.phpclass-edd-cache-helper.phpclass-edd-cli.phpclass-edd-cron.phpclass-edd-customer-query.phpclass-edd-customer.phpclass-edd-db-customer-meta.phpclass-edd-db-customers.phpclass-edd-db.phpclass-edd-discount.phpclass-edd-download.phpclass-edd-fees.phpclass-edd-html-elements.phpclass-edd-license-handler.phpclass-edd-logging.phpclass-edd-register-meta.phpclass-edd-roles.phpclass-edd-session.phpclass-edd-stats.phpclass-stats.phpclass-structured-data.phpclass-utilities.phpcompat-functions.php
compat
component-functions.phpcountry-functions.php
currency
customer-functions.php
customers
database
NotificationsDB.phpREADME.md
engine
queries
rows
schemas
tables
date-functions.phpdeprecated-functions.phpdeprecated-hooks.phpdiscount-functions.phpdownload-functions.php
downloads
emails
error-tracking.php
extensions
formatting.php
gateways
actions.phpamazon-payments.phpfunctions.php
libs
manual.phppaypal-standard.php
paypal
stripe
apple-developer-merchantid-domain-association
assets
edd-stripe.php
includes
vendor
autoload.php
composer
stripe
stripe-php
CHANGELOG.mdCODE_OF_CONDUCT.mdLICENSEMakefileREADME.mdVERSIONbuild.phpcomposer.json
data
init.php
lib
Account.phpAccountLink.phpAlipayAccount.php
ApiOperations
ApiRequestor.phpApiResource.phpApiResponse.phpApplePayDomain.phpApplicationFee.phpApplicationFeeRefund.phpBalance.phpBalanceTransaction.phpBankAccount.phpBaseStripeClient.php
BillingPortal
BitcoinReceiver.phpBitcoinTransaction.phpCapability.phpCard.phpCharge.php
Checkout
Collection.phpCountrySpec.phpCoupon.phpCreditNote.phpCreditNoteLineItem.phpCustomer.phpCustomerBalanceTransaction.phpDiscount.phpDispute.phpEphemeralKey.phpErrorObject.phpEvent.php
Exception
ExchangeRate.phpFile.phpFileLink.php
HttpClient
Invoice.phpInvoiceItem.phpInvoiceLineItem.php
Issuing
LineItem.phpLoginLink.phpMandate.phpOAuth.phpOAuthErrorObject.phpOrder.phpOrderItem.phpOrderReturn.phpPaymentIntent.phpPaymentMethod.phpPayout.phpPerson.phpPlan.phpPrice.phpProduct.phpPromotionCode.php
Radar
Recipient.phpRecipientTransfer.phpRefund.php
Reporting
RequestTelemetry.phpReview.phpSKU.php
Service
AbstractService.phpAbstractServiceFactory.phpAccountLinkService.phpAccountService.phpApplePayDomainService.phpApplicationFeeService.phpBalanceService.phpBalanceTransactionService.php
BillingPortal
ChargeService.php
Checkout
CoreServiceFactory.phpCountrySpecService.phpCouponService.phpCreditNoteService.phpCustomerService.phpDisputeService.phpEphemeralKeyService.phpEventService.phpExchangeRateService.phpFileLinkService.phpFileService.phpInvoiceItemService.phpInvoiceService.php
Issuing
MandateService.phpOAuthService.phpOrderReturnService.phpOrderService.phpPaymentIntentService.phpPaymentMethodService.phpPayoutService.phpPlanService.phpPriceService.phpProductService.phpPromotionCodeService.php
Radar
RefundService.php
Reporting
ReviewService.phpSetupIntentService.php
Sigma
SkuService.phpSourceService.phpSubscriptionItemService.phpSubscriptionScheduleService.phpSubscriptionService.phpTaxRateService.php
Terminal
TokenService.phpTopupService.phpTransferService.phpWebhookEndpointService.php
SetupIntent.php
Sigma
SingletonApiResource.phpSource.phpSourceTransaction.phpStripe.phpStripeClient.phpStripeClientInterface.phpStripeObject.phpSubscription.phpSubscriptionItem.phpSubscriptionSchedule.phpTaxId.phpTaxRate.php
Terminal
ThreeDSecure.phpToken.phpTopup.phpTransfer.phpTransferReversal.phpUsageRecord.phpUsageRecordSummary.php
Util
Webhook.phpWebhookEndpoint.phpWebhookSignature.php
phpdoc.dist.xmlphpstan-baseline.neonphpstan.neon.distupdate_certs.php
install.phpinterface-edd-exception.php
libraries
logs
mime-types.phpmisc-functions.php
models
notes
orders
payments
plugin-compatibility.phppost-types.phpprivacy-functions.phpprocess-download.phpprocess-purchase.phpquery-filters.phprefund-functions.php
reports
scripts.phpshortcodes.phptax-functions.phptemplate-actions.phptemplate-functions.phptheme-compatibility.php
traits
user-functions.php
users
utils
widgets.php
languages
license.txtreadme.txt
templates
uninstall.php

@ -0,0 +1,164 @@
<?php
/**
* Settings Compatibility Functions
*
* For managing settings compatibility in a reorganized settings structure.
*
* @package EDD
* @subpackage Settings Compatibility
* @copyright Copyright (c) 2021, Easy Digital Downloads
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 2.11.4
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Gives us an area to ensure known compatibility issues with our settings organization by giving us a hook to manage
* and alter hooks and filters that are being run against our primary settings array.
*
* @since 2.11.3
*/
add_action(
'plugins_loaded',
function() {
/**
* Ensures compatibility with EDD 2.11.3 and Recurring payments prior to Recurring being released to move
* settings for 'checkout' from 'misc' to 'payments'.
*/
if ( function_exists( 'edd_recurring_guest_checkout_description' ) && false !== has_filter( 'edd_settings_misc', 'edd_recurring_guest_checkout_description' ) ) {
remove_filter( 'edd_settings_misc', 'edd_recurring_guest_checkout_description', 10 );
add_filter( 'edd_settings_gateways', 'edd_recurring_guest_checkout_description', 10 );
}
/**
* Ensures compatibility with EDD 2.11.4 and Recurring payments prior to Recurring being released to move
* settings for all extension settings to 'payments'.
*/
if ( function_exists( 'edd_recurring_settings_section' ) && false !== has_filter( 'edd_settings_sections_extensions', 'edd_recurring_settings_section' ) ) {
remove_filter( 'edd_settings_sections_extensions', 'edd_recurring_settings_section' );
add_filter( 'edd_settings_sections_gateways', 'edd_recurring_settings_section' );
remove_filter( 'edd_settings_extensions', 'edd_recurring_settings' );
add_filter( 'edd_settings_gateways', 'edd_recurring_settings' );
}
/**
* Ensures compatibility with EDD 2.11.4 and Reviews' settings being in the extensions section.
*/
if ( function_exists( 'edd_reviews' ) ) {
$reviews = edd_reviews();
if ( false !== has_filter( 'edd_settings_sections_extensions', array( $reviews, 'register_reviews_section' ) ) ) {
remove_filter( 'edd_settings_sections_extensions', array( $reviews, 'register_reviews_section' ) );
add_filter( 'edd_settings_sections_marketing', array( $reviews, 'register_reviews_section' ) );
remove_filter( 'edd_settings_extensions', array( $reviews, 'misc_settings' ) );
add_filter( 'edd_settings_marketing', array( $reviews, 'misc_settings' ) );
}
}
/**
* Move the Free Downloads settings to the Marketing section (EDD 2.11.4).
*/
if ( false !== has_filter( 'edd_settings_sections_extensions', 'edd_free_downloads_add_settings_section' ) ) {
remove_filter( 'edd_settings_sections_extensions', 'edd_free_downloads_add_settings_section' );
add_filter( 'edd_settings_sections_marketing', 'edd_free_downloads_add_settings_section' );
remove_filter( 'edd_settings_extensions', 'edd_free_downloads_add_settings' );
add_filter( 'edd_settings_marketing', 'edd_free_downloads_add_settings' );
}
/**
* Move the ActiveCampaign settings to the Marketing section (EDD 2.11.4).
*/
if ( function_exists( 'edd_activecampaign' ) ) {
$activecampaign = edd_activecampaign();
if ( false !== has_filter( 'edd_settings_sections_extensions', array( $activecampaign, 'settings_section' ) ) ) {
remove_filter( 'edd_settings_sections_extensions', array( $activecampaign, 'settings_section' ) );
add_filter( 'edd_settings_sections_marketing', array( $activecampaign, 'settings_section' ) );
remove_filter( 'edd_settings_extensions', array( $activecampaign, 'register_settings' ) );
add_filter( 'edd_settings_marketing', array( $activecampaign, 'register_settings' ) );
}
}
/**
* Move the GetResponse settings to the Marketing section (EDD 2.11.4).
*/
if ( function_exists( 'edd_getresponse_add_settings_section' ) ) {
if ( false !== has_filter( 'edd_settings_sections_extensions', 'edd_getresponse_add_settings_section' ) ) {
$getresponse = new EDD_GetResponse_Newsletter();
remove_filter( 'edd_settings_sections_extensions', 'edd_getresponse_add_settings_section' );
add_filter( 'edd_settings_sections_marketing', 'edd_getresponse_add_settings_section' );
remove_filter( 'edd_settings_extensions', 'edd_getresponse_add_settings' );
add_filter( 'edd_settings_marketing', 'edd_getresponse_add_settings' );
remove_filter( 'edd_settings_extensions_sanitize', array( $getresponse, 'save_settings' ) );
add_filter( 'edd_settings_marketing_sanitize', array( $getresponse, 'save_settings' ) );
remove_filter( 'edd_settings_extensions-getresponse_sanitize', array( $getresponse, 'save_settings' ) );
add_filter( 'edd_settings_marketing-getresponse_sanitize', array( $getresponse, 'save_settings' ) );
}
}
/**
* Move the Campaign Monitor settings to the Marketing section (EDD 2.11.4).
*/
if ( function_exists( 'eddcp_settings_section' ) && false !== has_filter( 'edd_settings_sections_extensions', 'eddcp_settings_section' ) ) {
remove_filter( 'edd_settings_sections_extensions', 'eddcp_settings_section' );
add_filter( 'edd_settings_sections_marketing', 'eddcp_settings_section' );
remove_filter( 'edd_settings_extensions', 'eddcp_add_settings' );
add_filter( 'edd_settings_marketing', 'eddcp_add_settings' );
}
/**
* Move the ConvertKit settings to the Marketing section (EDD 2.11.4).
*/
if ( class_exists( 'EDD_ConvertKit' ) && method_exists( 'EDD_ConvertKit', 'instance' ) ) {
$convertkit = EDD_ConvertKit::instance();
if ( false !== has_filter( 'edd_settings_sections_extensions', array( $convertkit, 'subsection' ) ) ) {
remove_filter( 'edd_settings_sections_extensions', array( $convertkit, 'subsection' ) );
add_filter( 'edd_settings_sections_marketing', array( $convertkit, 'subsection' ) );
remove_filter( 'edd_settings_extensions_sanitize', array( $convertkit, 'save_settings' ) );
add_filter( 'edd_settings_marketing_sanitize', array( $convertkit, 'save_settings' ) );
remove_filter( 'edd_settings_extensions', array( $convertkit, 'settings' ) );
add_filter( 'edd_settings_marketing', array( $convertkit, 'settings' ) );
}
}
/**
* Move the AWeber settings to the Marketing section (EDD 2.11.4).
*/
if ( class_exists( 'EDD_Aweber' ) && method_exists( 'EDD_Aweber', 'instance' ) ) {
$aweber = EDD_Aweber::instance();
if ( false !== has_filter( 'edd_settings_sections_extensions', array( $aweber, 'subsection' ) ) ) {
remove_filter( 'edd_settings_sections_extensions', array( $aweber, 'subsection' ) );
add_filter( 'edd_settings_sections_marketing', array( $aweber, 'subsection' ) );
remove_filter( 'edd_settings_extensions', array( $aweber, 'settings' ) );
add_filter( 'edd_settings_marketing', array( $aweber, 'settings' ) );
}
}
/**
* Move the MailPoet settings to the Marketing section (EDD 2.11.4).
*/
if ( class_exists( 'EDD_MailPoet' ) && method_exists( 'EDD_MailPoet', 'instance' ) ) {
$mailpoet = EDD_MailPoet::instance();
if ( false !== has_filter( 'edd_settings_sections_extensions', array( $mailpoet, 'subsection' ) ) ) {
remove_filter( 'edd_settings_sections_extensions', array( $mailpoet, 'subsection' ) );
add_filter( 'edd_settings_sections_marketing', array( $mailpoet, 'subsection' ) );
remove_filter( 'edd_settings_extensions', array( $mailpoet, 'settings' ) );
add_filter( 'edd_settings_marketing', array( $mailpoet, 'settings' ) );
}
}
/**
* Move the Invoices settings to the Payments section (EDD 2.11.4).
*/
if ( false !== has_filter( 'edd_settings_sections_extensions', 'edd_invoices_register_settings_section' ) ) {
remove_filter( 'edd_settings_sections_extensions', 'edd_invoices_register_settings_section' );
add_filter( 'edd_settings_sections_gateways', 'edd_invoices_register_settings_section', 10 );
remove_filter( 'edd_settings_extensions', 'edd_invoices_register_settings', 1 );
add_filter( 'edd_settings_gateways', 'edd_invoices_register_settings', 1 );
}
},
99
);