Docs: Add a `@since` note to `register_rest_route()` about the `_doing_it_wrong()` notice when the required `permission_callback` argument is not set.
Follow-up to [48526]. Props psykro. Fixes #51060. git-svn-id: https://develop.svn.wordpress.org/trunk@48827 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de73a6a8e9
commit
ab12557628
|
@ -20,7 +20,8 @@ define( 'REST_API_VERSION', '2.0' );
|
||||||
* Note: Do not use before the {@see 'rest_api_init'} hook.
|
* Note: Do not use before the {@see 'rest_api_init'} hook.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @since 5.1.0 Added a _doing_it_wrong() notice when not called on or after the rest_api_init hook.
|
* @since 5.1.0 Added a `_doing_it_wrong()` notice when not called on or after the `rest_api_init` hook.
|
||||||
|
* @since 5.5.0 Added a `_doing_it_wrong()` notice when the required `permission_callback` argument is not set.
|
||||||
*
|
*
|
||||||
* @param string $namespace The first URL segment after core prefix. Should be unique to your package/plugin.
|
* @param string $namespace The first URL segment after core prefix. Should be unique to your package/plugin.
|
||||||
* @param string $route The base URL for route you are adding.
|
* @param string $route The base URL for route you are adding.
|
||||||
|
|
Loading…
Reference in New Issue