This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Commit 6b31826
committed
Move /posts WP_Query vars to
Currently, `/wp/v2/posts` allows WP_Query params and a few of our own
"per_page" etc. This is confusing and inconsistant. I think we discussed
a while back that we'd put all the WP_Query (internal) named collection
params under a `filter` param (inspired by v1) and implement
standardized collection params for posts that's inline with the params
for `terms`, `users` and `comments`.filter param1 parent bfaee00 commit 6b31826
File tree
2 files changed
+11
-13
lines changed- lib/endpoints
- tests
2 files changed
+11
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
| |||
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
96 | 91 | | |
97 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
0 commit comments