Skip to content

Commit

Permalink
Merge pull request WP-API#23 from ekandreas/master
Browse files Browse the repository at this point in the history
The filter json_authentication_errors obsolete
  • Loading branch information
kadamwhite authored Jun 26, 2017
2 parents d20ac18 + 7b24355 commit e911142
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 e911142

Please sign in to comment.