From 0871a0ddc20ec94009b7ed52f856d23cdede1ac7 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 22 Jul 2021 16:53:59 +0000 Subject: [PATCH] Docs: Miscellaneous docblock corrections and improvements. See #53399 git-svn-id: https://develop.svn.wordpress.org/trunk@51477 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/setup-config.php | 3 --- src/wp-includes/blocks.php | 8 ++++---- src/wp-includes/wp-db.php | 1 - 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php index 55c00484ac..910421b59e 100644 --- a/src/wp-admin/setup-config.php +++ b/src/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/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index cc46bc3d63..bfd36b41c0 100644 --- a/src/wp-includes/blocks.php +++ b/src/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/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index f6eb404765..0d867868b8 100644 --- a/src/wp-includes/wp-db.php +++ b/src/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.