Commit 533f786
committed
Add filter to signal error for WP-API v2
WP-API v2 uses filter 'rest_authentication_errors' to check for
authentication errors.
Add filter to return a proper error to WP-API v2 when something went wrong
with OAuth authentication.1 parent 4ca54cf commit 533f786
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments