From e66efc1dccd8ebb9e87a97d5539f6fa1ca8126b7 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 5 Apr 2017 13:06:43 +0100 Subject: [PATCH] Use wc_deprecated_function so notices are not triggered on ajax requests --- includes/abstracts/abstract-wc-deprecated-hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-deprecated-hooks.php b/includes/abstracts/abstract-wc-deprecated-hooks.php index b6d54767a31..a0f6df39177 100644 --- a/includes/abstracts/abstract-wc-deprecated-hooks.php +++ b/includes/abstracts/abstract-wc-deprecated-hooks.php @@ -78,7 +78,7 @@ abstract class WC_Deprecated_Hooks { * Display a deprecated notice for old hooks. */ protected function display_notice( $old_hook, $new_hook ) { - _deprecated_function( sprintf( 'The "%s" hook uses out of date data structures and', esc_html( $old_hook ) ), WC_VERSION, esc_html( $new_hook ) ); + wc_deprecated_function( sprintf( 'The "%s" hook uses out of date data structures and', esc_html( $old_hook ) ), WC_VERSION, esc_html( $new_hook ) ); } /**