Use wc_deprecated_function so notices are not triggered on ajax requests

This commit is contained in:
Mike Jolley 2017-04-05 13:06:43 +01:00
parent 4aaabb07b7
commit e66efc1dcc
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ abstract class WC_Deprecated_Hooks {
* Display a deprecated notice for old hooks. * Display a deprecated notice for old hooks.
*/ */
protected function display_notice( $old_hook, $new_hook ) { 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 ) );
} }
/** /**