Fix error message

This commit is contained in:
Mike Jolley 2017-02-14 19:31:14 +00:00
parent e0d1cfc7b0
commit 0c7218047c
1 changed files with 2 additions and 4 deletions

View File

@ -76,11 +76,9 @@ abstract class WC_Deprecated_Hooks {
/**
* Display a deprecated notice for old hooks.
*
* @since 2.0
*/
protected static function display_notice( $old_hook, $new_hook ) {
_deprecated_function( sprintf( 'The "%s" hook uses out of date data structures so', esc_html( $old_hook ) ), false, esc_html( $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 ) );
}
/**