Merge pull request #13002 from thenbrent/fix_undefined_variable_function

Fix "Undefined variable: function" notice
This commit is contained in:
Claudio Sanches 2017-01-27 13:19:07 -02:00 committed by GitHub
commit 80bc7128be
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function wc_doing_it_wrong( $function, $message, $version ) {
*/
function wc_deprecated_argument( $argument, $version, $message = null ) {
if ( is_ajax() ) {
do_action( 'deprecated_argument_run', $function, $message, $version );
do_action( 'deprecated_argument_run', $argument, $message, $version );
error_log( "The {$argument} argument is deprecated since version {$version}. {$message}" );
} else {
_deprecated_argument( $argument, $version, $message );