From 7b243555050e10a975118bc137cdf33b9cbacf19 Mon Sep 17 00:00:00 2001 From: Andreas Ek Date: Sat, 26 Sep 2015 11:32:57 +0200 Subject: [PATCH] The filter json_authentication_errors changed to rest_authentication_errors in WP-API 2.0-dev --- basic-auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic-auth.php b/basic-auth.php index 805918c..1ef6f85 100644 --- a/basic-auth.php +++ b/basic-auth.php @@ -59,4 +59,4 @@ function json_basic_auth_error( $error ) { return $wp_json_basic_auth_error; } -add_filter( 'json_authentication_errors', 'json_basic_auth_error' ); +add_filter( 'rest_authentication_errors', 'json_basic_auth_error' );