Deprecation will be as of 6.1.0.

This commit is contained in:
barryhughes 2021-12-07 08:59:17 -08:00
parent 4f39c25991
commit ca37d3ba41
1 changed files with 2 additions and 2 deletions

View File

@ -1129,11 +1129,11 @@ if ( ! function_exists( 'is_ajax' ) ) {
/** /**
* Is_ajax - Returns true when the page is loaded via ajax. * Is_ajax - Returns true when the page is loaded via ajax.
* *
* @deprecated 6.0.0 * @deprecated 6.1.0
* @return bool * @return bool
*/ */
function is_ajax() { function is_ajax() {
wc_deprecated_function( 'is_ajax', '6.0', 'wp_doing_ajax' ); wc_deprecated_function( 'is_ajax', '6.1.0', 'wp_doing_ajax' );
return function_exists( 'wp_doing_ajax' ) ? wp_doing_ajax() : Constants::is_defined( 'DOING_AJAX' ); return function_exists( 'wp_doing_ajax' ) ? wp_doing_ajax() : Constants::is_defined( 'DOING_AJAX' );
} }
} }