From 0434d4d30b8749b7184aae47f1aa1e5811940888 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 22 Jul 2021 16:54:58 +0000 Subject: [PATCH] Docs: Miscellaneous docblock corrections and improvements. See #53399 Built from https://develop.svn.wordpress.org/trunk@51477 git-svn-id: http://core.svn.wordpress.org/trunk@51088 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/setup-config.php | 3 --- wp-includes/blocks.php | 8 ++++---- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 1 - 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 55c00484ac..910421b59e 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -89,9 +89,6 @@ $step = isset( $_GET['step'] ) ? (int) $_GET['step'] : -1; * @ignore * @since 2.3.0 * - * @global string $wp_local_package Locale code of the package. - * @global WP_Locale $wp_locale WordPress date and time locale object. - * * @param string|string[] $body_classes Class attribute values for the body tag. */ function setup_config_display_header( $body_classes = array() ) { diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index cc46bc3d63..bfd36b41c0 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -346,7 +346,7 @@ function register_block_type_from_metadata( $file_or_folder, $args = array() ) { * the metadata stored in the `block.json` file. * * @since 5.0.0 - * @since 5.8.0 First param accepts a path to the `block.json` file. + * @since 5.8.0 First parameter now accepts a path to the `block.json` file. * * @param string|WP_Block_Type $block_type Block type name including namespace, or alternatively * a path to the JSON file with metadata definition for the block, @@ -722,7 +722,7 @@ function excerpt_remove_blocks( $content ) { * * @since 5.8.0 * - * @param array $allowed_wrapper_blocks The list of allowed wrapper blocks. + * @param string[] $allowed_wrapper_blocks The list of names of allowed wrapper blocks. */ $allowed_wrapper_blocks = apply_filters( 'excerpt_allowed_wrapper_blocks', $allowed_wrapper_blocks ); @@ -736,7 +736,7 @@ function excerpt_remove_blocks( $content ) { * * @since 5.0.0 * - * @param array $allowed_blocks The list of allowed blocks. + * @param string[] $allowed_blocks The list of names of allowed blocks. */ $allowed_blocks = apply_filters( 'excerpt_allowed_blocks', $allowed_blocks ); $blocks = parse_blocks( $content ); @@ -772,7 +772,7 @@ function excerpt_remove_blocks( $content ) { * Render inner blocks from the allowed wrapper blocks * for generating an excerpt. * - * @since 5.8 + * @since 5.8.0 * @access private * * @param array $parsed_block The parsed block. diff --git a/wp-includes/version.php b/wp-includes/version.php index ca681b0cbd..ca06c36ed7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51476'; +$wp_version = '5.9-alpha-51477'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index f6eb404765..0d867868b8 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -598,7 +598,6 @@ class wpdb { * @since 2.0.8 * * @link https://core.trac.wordpress.org/ticket/3354 - * @global string $wp_version The WordPress version string. * * @param string $dbuser MySQL database user. * @param string $dbpassword MySQL database password.