Commit 3371eed
authored
Remove misleading method parameter for get_item_schema
Removed $request param from get_item_schema() since this function does not actually support parameters when used in the WP_REST_Posts_Controller class. Including the param here is misleading since it is not needed, even in this custom controller. If the reader uses this example with the WP_REST_Posts_Controller class, an error will occur.
Fixes #106.1 parent 48e6469 commit 3371eed
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments