WP-API / docs

The content for developer.wordpress.org/rest-api
https://developer.wordpress.org/rest-api
110 stars 615 forks source link

Update controller-classes.md #106

Closed ndiego closed 3 years ago

ndiego commented 3 years ago

Removed $request param from get_item_schema() since this function does not actually support parameters when used in the WP_REST_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_Controller class, an error will occur.

TimothyBJacobs commented 3 years ago

Great catch @ndiego, thanks for the patch!