From 2326c8196dd26034382fd04dd950d7bc72ac0054 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 19 Aug 2020 12:31:08 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@48827 git-svn-id: http://core.svn.wordpress.org/trunk@48589 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index 12e3df3247..18a90ec2e3 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -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. diff --git a/wp-includes/version.php b/wp-includes/version.php index f40110ba63..e0c52971df 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48826'; +$wp_version = '5.6-alpha-48827'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.