Skip to content

Commit

Permalink
The filter json_authentication_errors changed to rest_authentication_…
Browse files Browse the repository at this point in the history
…errors in WP-API 2.0-dev
  • Loading branch information
Andreas Ek committed Sep 26, 2015
1 parent d20ac18 commit 7b24355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

0 comments on commit 7b24355

Please sign in to comment.