Skip to content

Commit 6978ef4

Browse files
author
Mike Nelson
committed
Merge branch 'work-with-wp-api-v2-too'
2 parents c1f070b + 09ad41e commit 6978ef4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

basic-auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ function json_basic_auth_error( $error ) {
6565
return $wp_json_basic_auth_error;
6666
}
6767
add_filter( 'json_authentication_errors', 'json_basic_auth_error' );
68+
add_filter( 'rest_authentication_errors', 'json_basic_auth_error' );

0 commit comments

Comments
 (0)