updated plugin Easy Digital Downloads version 3.1.2

This commit is contained in:
2023-06-28 12:45:44 +00:00
committed by Gitium
parent 44df590080
commit f710fa7de2
120 changed files with 5556 additions and 3347 deletions

View File

@ -1260,7 +1260,7 @@ function edd_get_bot_name() {
function edd_redirect( $location = '', $status = 302 ) {
// Prevent redirects in unit tests.
if ( (bool) ( defined( 'WP_TESTS_DIR' ) && WP_TESTS_DIR ) || function_exists( '_manually_load_plugin' ) ) {
if ( edd_is_doing_unit_tests() ) {
return;
}
@ -1932,6 +1932,16 @@ function edd_is_inactive_pro() {
return ! $pass_manager->isPro();
}
/**
* Whether unit tests are running.
*
* @since 3.1.2
* @return bool
*/
function edd_is_doing_unit_tests() {
return (bool) ( ( defined( 'EDD_DOING_TESTS' ) && EDD_DOING_TESTS ) || function_exists( '_manually_load_plugin' ) );
}
/**
* Polyfills for is_countable and is_iterable
*