Commit 9e00ed74 authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

Docs: Add a `@since` note to `register_rest_route()` about the...

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.
Merges [48827] to the 5.5 branch.
Fixes #51060.
Built from https://develop.svn.wordpress.org/branches/5.5@48828


git-svn-id: https://core.svn.wordpress.org/branches/5.5@48590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 085cfb18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -20,7 +20,8 @@ define( 'REST_API_VERSION', '2.0' );
 * Note: Do not use before the {@see 'rest_api_init'} hook.
 *
 * @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 $route     The base URL for route you are adding.
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
 *
 * @global string $wp_version
 */
$wp_version = '5.5.1-alpha-48821';
$wp_version = '5.5.1-alpha-48828';

/**
 * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.