Skip to content

Commit 5d7827a

Browse files
committed
Prefer using wp_doing_ajax
1 parent 8ff2b1b commit 5d7827a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

woocommerce-dev-helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function change_elavon_test_values( $defaults, $gateway ) {
176176
public function includes() {
177177

178178
require_once( $this->get_plugin_path() . '/includes/Ajax.php' );
179-
if ( $this->is_plugin_active( 'woocommerce.php' ) && is_ajax() ) {
179+
if ( $this->is_plugin_active( 'woocommerce.php' ) && wp_doing_ajax() ) {
180180
$this->ajax = new Ajax();
181181
}
182182

0 commit comments

Comments
 (0)