updated plugin Easy Digital Downloads
version 3.1.2
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user