From 1ead0719b7897632d4d44309dbd904d9eb96dd28 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 10 Dec 2020 23:27:06 +0000 Subject: [PATCH] Docs: Fix some docblock issues introduced in 5.6. See #51800 Built from https://develop.svn.wordpress.org/trunk@49787 git-svn-id: http://core.svn.wordpress.org/trunk@49510 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-supports/generated-classname.php | 6 ++++++ wp-includes/class-wp-application-passwords.php | 6 +++--- wp-includes/rest-api/class-wp-rest-server.php | 2 ++ .../rest-api/search/class-wp-rest-term-search-handler.php | 2 ++ wp-includes/version.php | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/wp-includes/block-supports/generated-classname.php b/wp-includes/block-supports/generated-classname.php index 4f38fd3103..eab19d4fa3 100644 --- a/wp-includes/block-supports/generated-classname.php +++ b/wp-includes/block-supports/generated-classname.php @@ -8,6 +8,8 @@ /** * Get the generated classname from a given block name. * + * @since 5.6.0 + * * @access private * * @param string $block_name Block Name. @@ -25,6 +27,8 @@ function wp_get_block_default_classname( $block_name ) { /** * Filters the default block className for server rendered blocks. * + * @since 5.6.0 + * * @param string $class_name The current applied classname. * @param string $block_name The block name. */ @@ -36,6 +40,8 @@ function wp_get_block_default_classname( $block_name ) { /** * Add the generated classnames to the output. * + * @since 5.6.0 + * * @access private * * @param WP_Block_Type $block_type Block Type. diff --git a/wp-includes/class-wp-application-passwords.php b/wp-includes/class-wp-application-passwords.php index f09ca1a1c9..22ad1c72c8 100644 --- a/wp-includes/class-wp-application-passwords.php +++ b/wp-includes/class-wp-application-passwords.php @@ -18,7 +18,7 @@ class WP_Application_Passwords { * * @since 5.6.0 * - * @type string + * @var string */ const USERMETA_KEY_APPLICATION_PASSWORDS = '_application_passwords'; @@ -27,7 +27,7 @@ class WP_Application_Passwords { * * @since 5.6.0 * - * @type string + * @var string */ const OPTION_KEY_IN_USE = 'using_application_passwords'; @@ -36,7 +36,7 @@ class WP_Application_Passwords { * * @since 5.6.0 * - * @type int + * @var int */ const PW_LENGTH = 24; diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index 86dd23a3c0..7e28478d4d 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/wp-includes/rest-api/class-wp-rest-server.php @@ -1439,6 +1439,8 @@ class WP_REST_Server { /** * Filters the maximum number of requests that can be included in a batch. * + * @since 5.6.0 + * * @param int $max_size The maximum size. */ return apply_filters( 'rest_get_max_batch_size', 25 ); diff --git a/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php b/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php index e2d0e3b6cd..fb8180de90 100644 --- a/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php +++ b/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php @@ -70,6 +70,8 @@ class WP_REST_Term_Search_Handler extends WP_REST_Search_Handler { * * Enables adding extra arguments or setting defaults for a term search request. * + * @since 5.6.0 + * * @param array $query_args Key value array of query var to query value. * @param WP_REST_Request $request The request used. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 6f1c0593d3..88da9e9e27 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49786'; +$wp_version = '5.7-alpha-49787'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.