diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php
index b834f7b594062..ed93797a64faf 100644
--- a/src/wp-admin/comment.php
+++ b/src/wp-admin/comment.php
@@ -372,8 +372,8 @@
*
* @since 2.1.0
*
- * @param string $location The URI the user will be redirected to.
- * @param int $comment_id The ID of the comment being edited.
+ * @param string $location The URI the user will be redirected to.
+ * @param int $comment_id The ID of the comment being edited.
*/
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
index cd9426c6ef88b..aa4db87effc2a 100644
--- a/src/wp-admin/includes/class-wp-automatic-updater.php
+++ b/src/wp-admin/includes/class-wp-automatic-updater.php
@@ -170,10 +170,10 @@ public function is_vcs_checkout( $context ) {
*
* @since 3.7.0
*
- * @param bool $checkout Whether a VCS checkout was discovered at `$context`
- * or ABSPATH, or anywhere higher.
- * @param string $context The filesystem context (a path) against which
- * filesystem status should be checked.
+ * @param bool $checkout Whether a VCS checkout was discovered at `$context`
+ * or ABSPATH, or anywhere higher.
+ * @param string $context The filesystem context (a path) against which
+ * filesystem status should be checked.
*/
return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
}
@@ -1130,7 +1130,7 @@ protected function send_email( $type, $core_update, $result = null ) {
*
* @since 3.7.0
*
- * @param array $email {
+ * @param array $email {
* Array of email arguments that will be passed to wp_mail().
*
* @type string $to The email recipient. An array of emails
diff --git a/src/wp-admin/includes/class-wp-community-events.php b/src/wp-admin/includes/class-wp-community-events.php
index a31b3651b9a1c..d6a0c8161add9 100644
--- a/src/wp-admin/includes/class-wp-community-events.php
+++ b/src/wp-admin/includes/class-wp-community-events.php
@@ -39,7 +39,7 @@ class WP_Community_Events {
*
* @since 4.8.0
*
- * @param int $user_id WP user ID.
+ * @param int $user_id WP user ID.
* @param false|array $user_location {
* Stored location data for the user. false to pass no location.
*
diff --git a/src/wp-admin/includes/class-wp-internal-pointers.php b/src/wp-admin/includes/class-wp-internal-pointers.php
index 9a2135b5279fd..22233884b4beb 100644
--- a/src/wp-admin/includes/class-wp-internal-pointers.php
+++ b/src/wp-admin/includes/class-wp-internal-pointers.php
@@ -109,8 +109,8 @@ public static function enqueue_scripts( $hook_suffix ) {
* @since 3.3.0
*
* @param string $pointer_id The pointer ID.
- * @param string $selector The HTML elements, on which the pointer should be attached.
- * @param array $args Arguments to be passed to the pointer JS (see wp-pointer.js).
+ * @param string $selector The HTML elements, on which the pointer should be attached.
+ * @param array $args Arguments to be passed to the pointer JS (see wp-pointer.js).
*/
private static function print_js( $pointer_id, $selector, $args ) {
if ( empty( $pointer_id ) || empty( $selector ) || empty( $args ) || empty( $args['content'] ) ) {
diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
index 5e6bcdb0d237c..2f9039261c803 100644
--- a/src/wp-admin/includes/class-wp-list-table.php
+++ b/src/wp-admin/includes/class-wp-list-table.php
@@ -729,7 +729,7 @@ protected function months_dropdown( $post_type ) {
*
* @since 5.7.0
*
- * @param object[]|false $months 'Months' drop-down results. Default false.
+ * @param object[]|false $months 'Months' drop-down results. Default false.
* @param string $post_type The post type.
*/
$months = apply_filters( 'pre_months_dropdown_query', false, $post_type );
diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php
index 8a319986766b8..ae850496eb96e 100644
--- a/src/wp-admin/includes/class-wp-posts-list-table.php
+++ b/src/wp-admin/includes/class-wp-posts-list-table.php
@@ -1854,7 +1854,7 @@ public function inline_edit() {
* @see wp_dropdown_users()
*
* @param array $users_opt An array of arguments passed to wp_dropdown_users().
- * @param bool $bulk A flag to denote if it's a bulk action.
+ * @param bool $bulk A flag to denote if it's a bulk action.
*/
$users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );
diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
index 1904acd4e08c5..3c0c8b3844b22 100644
--- a/src/wp-admin/includes/class-wp-site-health-auto-updates.php
+++ b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
@@ -63,9 +63,9 @@ static function ( $test ) {
* @since 5.2.0
* @since 5.5.1 The `$value` parameter can accept an array.
*
- * @param string $constant The name of the constant to check.
- * @param bool|string|array $value The value that the constant should be, if set,
- * or an array of acceptable values.
+ * @param string $constant The name of the constant to check.
+ * @param bool|string|array $value The value that the constant should be, if set,
+ * or an array of acceptable values.
* @return array|null The test results if there are any constants set incorrectly,
* or null if the test passed.
*/
diff --git a/src/wp-admin/includes/class-wp-terms-list-table.php b/src/wp-admin/includes/class-wp-terms-list-table.php
index 561888fed8394..9481f0967a744 100644
--- a/src/wp-admin/includes/class-wp-terms-list-table.php
+++ b/src/wp-admin/includes/class-wp-terms-list-table.php
@@ -395,8 +395,8 @@ public function column_name( $tag ) {
*
* @see WP_Terms_List_Table::column_name()
*
- * @param string $pad_tag_name The term name, padded if not top-level.
- * @param WP_Term $tag Term object.
+ * @param string $pad_tag_name The term name, padded if not top-level.
+ * @param WP_Term $tag Term object.
*/
$name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
index 8c0015020f35d..25da20199e385 100644
--- a/src/wp-admin/includes/file.php
+++ b/src/wp-admin/includes/file.php
@@ -1311,7 +1311,7 @@ function download_url( $url, $timeout = 300, $signature_verification = false ) {
* @since 5.2.0
*
* @param false|string $signature_url The URL where signatures can be found for a file, or false if none are known.
- * @param string $url The URL being verified.
+ * @param string $url The URL being verified.
*/
$signature_url = apply_filters( 'wp_signature_url', $signature_url, $url );
diff --git a/src/wp-admin/includes/list-table.php b/src/wp-admin/includes/list-table.php
index 1e2c190c80fe9..97dfe4f858c7e 100644
--- a/src/wp-admin/includes/list-table.php
+++ b/src/wp-admin/includes/list-table.php
@@ -84,7 +84,7 @@ function _get_list_table( $class_name, $args = array() ) {
*
* @since 2.7.0
*
- * @param string $screen The handle for the screen to register column headers for. This is
+ * @param string $screen The handle for the screen to register column headers for. This is
* usually the hook name returned by the `add_*_page()` functions.
* @param string[] $columns An array of columns with column IDs as the keys and translated
* column names as the values.
diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
index 6c50a1daba4fd..f52c12d1f9a9d 100644
--- a/src/wp-admin/includes/media.php
+++ b/src/wp-admin/includes/media.php
@@ -3549,7 +3549,7 @@ function attachment_submitbox_metadata() {
* @since 3.6.0
*
* @param array $metadata An existing array with data.
- * @param array $data Data supplied by ID3 tags.
+ * @param array $data Data supplied by ID3 tags.
*/
function wp_add_id3_tag_data( &$metadata, $data ) {
foreach ( array( 'id3v2', 'id3v1' ) as $version ) {
diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php
index dc232f1df7018..62e93a36eef5d 100644
--- a/src/wp-admin/includes/plugin-install.php
+++ b/src/wp-admin/includes/plugin-install.php
@@ -895,15 +895,15 @@ function install_plugin_information() {
* @since 6.5.0
*
* @param string $name Plugin name.
- * @param array|object $data {
+ * @param array|object $data {
* An array or object of plugin data. Can be retrieved from the API.
*
* @type string $slug The plugin slug.
* @type string[] $requires_plugins An array of plugin dependency slugs.
* @type string $version The plugin's version string. Used when getting the install status.
* }
- * @param bool $compatible_php The result of a PHP compatibility check.
- * @param bool $compatible_wp The result of a WP compatibility check.
+ * @param bool $compatible_php The result of a PHP compatibility check.
+ * @param bool $compatible_wp The result of a WP compatibility check.
* @return string The markup for the dependency row button. An empty string if the user does not have capabilities.
*/
function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible_wp ) {
diff --git a/src/wp-admin/includes/plugin.php b/src/wp-admin/includes/plugin.php
index 94d4a585a80f1..9969316ab8d58 100644
--- a/src/wp-admin/includes/plugin.php
+++ b/src/wp-admin/includes/plugin.php
@@ -1264,7 +1264,7 @@ function validate_plugin_requirements( $plugin ) {
* @since 6.9.0
*
* @param bool|WP_Error $met_requirements True if the plugin meets requirements, WP_Error if not.
- * @param string $plugin Path to the plugin file relative to the plugins directory.
+ * @param string $plugin Path to the plugin file relative to the plugins directory.
*/
return apply_filters( 'validate_plugin_requirements', true, $plugin );
}
diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
index 39d267b623037..5c4537d89722f 100644
--- a/src/wp-admin/includes/post.php
+++ b/src/wp-admin/includes/post.php
@@ -2607,7 +2607,7 @@ function the_block_editor_meta_box_post_form_hidden_fields( $post ) {
* @since 5.9.0
* @access private
*
- * @param bool $value Whether the CPT supports block editor or not.
+ * @param bool $value Whether the CPT supports block editor or not.
* @param string $post_type Post type.
* @return bool Whether the block editor should be disabled or not.
*/
diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index 418bfd7def697..a5620735aa0b1 100644
--- a/src/wp-admin/includes/template.php
+++ b/src/wp-admin/includes/template.php
@@ -1808,7 +1808,7 @@ function do_settings_sections( $page ) {
*
* @global array $wp_settings_fields Storage array of settings fields and their pages/sections.
*
- * @param string $page Slug title of the admin page whose settings fields you want to show.
+ * @param string $page Slug title of the admin page whose settings fields you want to show.
* @param string $section Slug title of the settings section whose fields you want to show.
*/
function do_settings_fields( $page, $section ) {
diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php
index ef5793b7dd118..5ee488536ede2 100644
--- a/src/wp-admin/includes/theme.php
+++ b/src/wp-admin/includes/theme.php
@@ -157,7 +157,7 @@ function get_page_templates( $post = null, $post_type = 'page' ) {
* @since 2.9.0
* @access private
*
- * @param string $fullpath Full path to the theme file
+ * @param string $fullpath Full path to the theme file
* @param string $containingfolder Path of the theme parent folder
* @return string
*/
diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php
index 914113bde00d0..a8db7bb375ea2 100644
--- a/src/wp-admin/includes/upgrade.php
+++ b/src/wp-admin/includes/upgrade.php
@@ -621,7 +621,7 @@ function wp_new_blog_notification(
*
* @since 5.6.0
*
- * @param array $installed_email {
+ * @param array $installed_email {
* Used to build wp_mail().
*
* @type string $to The email address of the recipient.
@@ -629,11 +629,11 @@ function wp_new_blog_notification(
* @type string $message The content of the email.
* @type string $headers Headers.
* }
- * @param WP_User $user The site administrator user object.
- * @param string $blog_title The site title.
- * @param string $blog_url The site URL.
- * @param string $password The site administrator's password. Note that a placeholder message
- * is usually passed instead of the user's actual password.
+ * @param WP_User $user The site administrator user object.
+ * @param string $blog_title The site title.
+ * @param string $blog_url The site URL.
+ * @param string $password The site administrator's password. Note that a placeholder message
+ * is usually passed instead of the user's actual password.
*/
$installed_email = apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password );
diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php
index 2aeeba0b035b4..c6c08c4eaf76c 100644
--- a/src/wp-admin/includes/user.php
+++ b/src/wp-admin/includes/user.php
@@ -169,8 +169,8 @@ function edit_user( $user_id = 0 ) {
* @since 1.5.1
*
* @param string $user_login The username.
- * @param string $pass1 The password (passed by reference).
- * @param string $pass2 The confirmed password (passed by reference).
+ * @param string $pass1 The password (passed by reference).
+ * @param string $pass2 The confirmed password (passed by reference).
*/
do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) );
@@ -717,7 +717,7 @@ function wp_is_authorize_application_redirect_url_valid( $url ) {
* @since 6.3.2
*
* @param string[] $bad_protocols Array of invalid protocols.
- * @param string $url The redirect URL to be validated.
+ * @param string $url The redirect URL to be validated.
*/
$invalid_protocols = apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url );
$invalid_protocols = array_map( 'strtolower', $invalid_protocols );
diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php
index 5d45c63801bfe..8055de6b36385 100644
--- a/src/wp-admin/user-edit.php
+++ b/src/wp-admin/user-edit.php
@@ -931,7 +931,7 @@
*
* @since 2.8.0
*
- * @param bool $enable Whether to display the capabilities. Default true.
+ * @param bool $enable Whether to display the capabilities. Default true.
* @param WP_User $profile_user The current WP_User object.
*/
$display_additional_caps = apply_filters( 'additional_capabilities_display', true, $profile_user );
diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php
index 3136705f60a03..453a0de54fa55 100644
--- a/src/wp-admin/user-new.php
+++ b/src/wp-admin/user-new.php
@@ -154,7 +154,7 @@
*
* @since 5.6.0
*
- * @param array $new_user_email {
+ * @param array $new_user_email {
* Used to build wp_mail().
*
* @type string $to The email address of the invited user.
@@ -162,9 +162,9 @@
* @type string $message The content of the email.
* @type string $headers Headers.
* }
- * @param int $user_id The invited user's ID.
- * @param array $role Array containing role information for the invited user.
- * @param string $newuser_key The key of the invitation.
+ * @param int $user_id The invited user's ID.
+ * @param array $role Array containing role information for the invited user.
+ * @param string $newuser_key The key of the invitation.
*
*/
$new_user_email = apply_filters( 'invited_user_email', $new_user_email, $user_id, $role, $newuser_key );
diff --git a/src/wp-admin/widgets-form-blocks.php b/src/wp-admin/widgets-form-blocks.php
index f854891cb8815..2db8fb404830b 100644
--- a/src/wp-admin/widgets-form-blocks.php
+++ b/src/wp-admin/widgets-form-blocks.php
@@ -121,7 +121,7 @@
*
* @since 6.4.0
*
- * @param string $message The message being displayed.
+ * @param string $message The message being displayed.
* @param bool $installed Whether the Classic Widget plugin is installed.
*/
$message = apply_filters( 'block_widgets_no_javascript_message', $message, $installed );
diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php
index 77e5935f11245..6771117ab3251 100644
--- a/src/wp-content/themes/twentyfourteen/functions.php
+++ b/src/wp-content/themes/twentyfourteen/functions.php
@@ -680,7 +680,7 @@ function twentyfourteen_post_classes( $classes ) {
* @global int $page Page number of a single post.
*
* @param string $title Default title text for current view.
- * @param string $sep Optional separator.
+ * @param string $sep Optional separator.
* @return string The filtered title.
*/
function twentyfourteen_wp_title( $title, $sep ) {
diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php
index 877da5a297efb..a6c3300bb45b2 100644
--- a/src/wp-content/themes/twentytwelve/functions.php
+++ b/src/wp-content/themes/twentytwelve/functions.php
@@ -309,7 +309,7 @@ function twentytwelve_mce_css( $mce_css ) {
* @global int $page Page number of a single post.
*
* @param string $title Default title text for current view.
- * @param string $sep Optional separator.
+ * @param string $sep Optional separator.
* @return string Filtered title.
*/
function twentytwelve_wp_title( $title, $sep ) {
diff --git a/src/wp-includes/block-supports/layout.php b/src/wp-includes/block-supports/layout.php
index 3be4f07b055ea..749ccf9d0804b 100644
--- a/src/wp-includes/block-supports/layout.php
+++ b/src/wp-includes/block-supports/layout.php
@@ -1530,7 +1530,7 @@ static function ( $matches ) {
* @access private
*
* @param string $block_content Rendered block content.
- * @param array $block Block object.
+ * @param array $block Block object.
* @return string Filtered block content.
*/
function wp_restore_image_outer_container( $block_content, $block ) {
diff --git a/src/wp-includes/block-supports/settings.php b/src/wp-includes/block-supports/settings.php
index 2af6f865f76b3..9cf253defc15b 100644
--- a/src/wp-includes/block-supports/settings.php
+++ b/src/wp-includes/block-supports/settings.php
@@ -69,8 +69,8 @@ function _wp_add_block_level_presets_class( $block_content, $block ) {
* @since 6.3.0 Updated preset styles to use Selectors API.
* @access private
*
- * @param string|null $pre_render The pre-rendered content. Default null.
- * @param array $block The block being rendered.
+ * @param string|null $pre_render The pre-rendered content. Default null.
+ * @param array $block The block being rendered.
* @return null
*/
function _wp_add_block_level_preset_styles( $pre_render, $block ) {
diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php
index 2d23f8545e87f..3a0d0065cbab4 100644
--- a/src/wp-includes/block-template-utils.php
+++ b/src/wp-includes/block-template-utils.php
@@ -1114,7 +1114,7 @@ function get_block_templates( $query = array(), $template_type = 'wp_template' )
*
* @param WP_Block_Template[]|null $block_templates Return an array of block templates to short-circuit the default query,
* or null to allow WP to run its normal queries.
- * @param array $query {
+ * @param array $query {
* Arguments to retrieve templates. All arguments are optional.
*
* @type string[] $slug__in List of slugs to include.
@@ -1122,7 +1122,7 @@ function get_block_templates( $query = array(), $template_type = 'wp_template' )
* @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only).
* @type string $post_type Post type to get the templates for.
* }
- * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'.
+ * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'.
*/
$templates = apply_filters( 'pre_get_block_templates', null, $query, $template_type );
if ( ! is_null( $templates ) ) {
@@ -1263,7 +1263,7 @@ function ( $template ) {
*
* @since 5.9.0
*
- * @param WP_Block_Template[] $query_result Array of found block templates.
+ * @param WP_Block_Template[] $query_result Array of found block templates.
* @param array $query {
* Arguments to retrieve templates. All arguments are optional.
*
diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
index 4a048c80baf3e..c1da742cf3ce2 100644
--- a/src/wp-includes/blocks.php
+++ b/src/wp-includes/blocks.php
@@ -1258,13 +1258,13 @@ function apply_block_hooks_to_content( $content, $context = null, $callback = 'i
* @since 7.0.0 Added the `$ignored_hooked_blocks_at_root` parameter.
* @access private
*
- * @param string $content Serialized content.
- * @param WP_Post|null $post A post object that the content belongs to. If set to `null`,
- * `get_post()` will be called to use the current post as context.
- * Default: `null`.
- * @param callable $callback A function that will be called for each block to generate
- * the markup for a given list of blocks that are hooked to it.
- * Default: 'insert_hooked_blocks'.
+ * @param string $content Serialized content.
+ * @param WP_Post|null $post A post object that the content belongs to. If set to `null`,
+ * `get_post()` will be called to use the current post as context.
+ * Default: `null`.
+ * @param callable $callback A function that will be called for each block to generate
+ * the markup for a given list of blocks that are hooked to it.
+ * Default: 'insert_hooked_blocks'.
* @param array|null $ignored_hooked_blocks_at_root A reference to an array that will be populated
* with the ignored hooked blocks at the root level.
* Default: `null`.
diff --git a/src/wp-includes/blocks/accordion.php b/src/wp-includes/blocks/accordion.php
index 537904a6e402d..a840fe7dfed69 100644
--- a/src/wp-includes/blocks/accordion.php
+++ b/src/wp-includes/blocks/accordion.php
@@ -5,8 +5,8 @@
* @package WordPress
* @since 6.9.0
*
- * @param array $attributes The block attributes.
- * @param string $content The block content.
+ * @param array $attributes The block attributes.
+ * @param string $content The block content.
*
* @return string Returns the updated markup.
*/
diff --git a/src/wp-includes/blocks/heading.php b/src/wp-includes/blocks/heading.php
index 471e31f19f2ee..b712e9b631670 100644
--- a/src/wp-includes/blocks/heading.php
+++ b/src/wp-includes/blocks/heading.php
@@ -17,7 +17,7 @@
* @since 6.2.0
*
* @param array $attributes Attributes of the block being rendered.
- * @param string $content Content of the block being rendered.
+ * @param string $content Content of the block being rendered.
*
* @return string The content of the block being rendered.
*/
diff --git a/src/wp-includes/blocks/list.php b/src/wp-includes/blocks/list.php
index 1bffd81324857..5a5aecfb28078 100644
--- a/src/wp-includes/blocks/list.php
+++ b/src/wp-includes/blocks/list.php
@@ -15,7 +15,7 @@
* @see https://github.com/WordPress/gutenberg/issues/12420
*
* @param array $attributes Attributes of the block being rendered.
- * @param string $content Content of the block being rendered.
+ * @param string $content Content of the block being rendered.
*
* @return string The content of the block being rendered.
*/
diff --git a/src/wp-includes/blocks/navigation-link.php b/src/wp-includes/blocks/navigation-link.php
index b7c76b2f6e600..6e04703229553 100644
--- a/src/wp-includes/blocks/navigation-link.php
+++ b/src/wp-includes/blocks/navigation-link.php
@@ -304,7 +304,7 @@ function render_block_core_navigation_link( $attributes, $content, $block ) {
* @since 5.9.0
*
* @param WP_Taxonomy|WP_Post_Type $entity post type or taxonomy entity.
- * @param string $kind string of value 'taxonomy' or 'post-type'.
+ * @param string $kind string of value 'taxonomy' or 'post-type'.
*
* @return array
*/
diff --git a/src/wp-includes/blocks/navigation.php b/src/wp-includes/blocks/navigation.php
index fcb8f5f97af8e..ed58a7b7ebfb8 100644
--- a/src/wp-includes/blocks/navigation.php
+++ b/src/wp-includes/blocks/navigation.php
@@ -411,7 +411,7 @@ private static function disable_overlay_menu_for_nested_navigation_blocks( $bloc
* @since 6.5.0
*
* @param string $overlay_template_part_id The overlay template part ID in format "theme//slug".
- * @param array $attributes The block attributes.
+ * @param array $attributes The block attributes.
* @return WP_Block_List Returns the inner blocks for the overlay template part.
*/
private static function get_overlay_blocks_from_template_part( $overlay_template_part_id, $attributes ) {
@@ -512,7 +512,7 @@ private static function get_overlay_blocks_from_template_part( $overlay_template
* @since 6.5.0
*
* @param array $attributes The block attributes.
- * @param WP_Block $block The parsed block.
+ * @param WP_Block $block The parsed block.
* @return WP_Block_List Returns the inner blocks for the navigation block.
*/
private static function get_inner_blocks( $attributes, $block ) {
@@ -682,8 +682,8 @@ private static function get_styles( $attributes ) {
* @since 7.0.0
*
* @param bool $is_hidden_by_default Whether the responsive menu is hidden by default.
- * @param bool $has_custom_overlay Whether a custom overlay is used.
- * @param array $colors The colors array.
+ * @param bool $has_custom_overlay Whether a custom overlay is used.
+ * @param array $colors The colors array.
* @return array Returns the responsive container classes.
*/
private static function get_responsive_container_classes( $is_hidden_by_default, $has_custom_overlay, $colors ) {
@@ -722,8 +722,8 @@ private static function get_overlay_inline_styles( $has_custom_overlay, $colors
*
* @since 6.5.0
*
- * @param array $attributes The block attributes.
- * @param WP_Block_List $inner_blocks The list of inner blocks.
+ * @param array $attributes The block attributes.
+ * @param WP_Block_List $inner_blocks The list of inner blocks.
* @param string $inner_blocks_html The markup for the inner blocks.
* @return string Returns the container markup.
*/
@@ -961,7 +961,7 @@ private static function handle_view_script_module_loading( $attributes, $block,
*
* @since 6.5.0
*
- * @param array $attributes The block attributes.
+ * @param array $attributes The block attributes.
* @param WP_Block_List $inner_blocks The list of inner blocks.
* @return string Returns the navigation wrapper markup.
*/
diff --git a/src/wp-includes/blocks/page-list.php b/src/wp-includes/blocks/page-list.php
index 0c3109897cfc7..cb0138e618a31 100644
--- a/src/wp-includes/blocks/page-list.php
+++ b/src/wp-includes/blocks/page-list.php
@@ -128,14 +128,14 @@ function block_core_page_list_build_css_colors( $attributes, $context ) {
*
* @since 5.8.0
*
- * @param string $submenu_visibility The submenu visibility mode: 'hover', 'click', or 'always'.
- * @param boolean $show_submenu_icons Whether to show submenu indicator icons.
- * @param boolean $is_navigation_child If block is a child of Navigation block.
- * @param array $nested_pages The array of nested pages.
- * @param boolean $is_nested Whether the submenu is nested or not.
+ * @param string $submenu_visibility The submenu visibility mode: 'hover', 'click', or 'always'.
+ * @param boolean $show_submenu_icons Whether to show submenu indicator icons.
+ * @param boolean $is_navigation_child If block is a child of Navigation block.
+ * @param array $nested_pages The array of nested pages.
+ * @param boolean $is_nested Whether the submenu is nested or not.
* @param array $active_page_ancestor_ids An array of ancestor ids for active page.
- * @param array $colors Color information for overlay styles.
- * @param integer $depth The nesting depth.
+ * @param array $colors Color information for overlay styles.
+ * @param integer $depth The nesting depth.
*
* @return string List markup.
*/
@@ -227,7 +227,7 @@ function block_core_page_list_render_nested_page_list( $submenu_visibility, $sho
* @since 5.8.0
*
* @param array $current_level The level being iterated through.
- * @param array $children The children grouped by parent post ID.
+ * @param array $children The children grouped by parent post ID.
*
* @return array The nested array of pages.
*/
diff --git a/src/wp-includes/blocks/social-link.php b/src/wp-includes/blocks/social-link.php
index 0225a14d7beb5..d54af463a49b5 100644
--- a/src/wp-includes/blocks/social-link.php
+++ b/src/wp-includes/blocks/social-link.php
@@ -131,7 +131,7 @@ function block_core_social_link_get_name( $service ) {
* @since 5.4.0
*
* @param string $service The service slug to extract data from.
- * @param string $field The field ('name', 'icon', etc) to extract for a service.
+ * @param string $field The field ('name', 'icon', etc) to extract for a service.
*
* @return array|string
*/
diff --git a/src/wp-includes/blocks/widget-group.php b/src/wp-includes/blocks/widget-group.php
index e8769612a2f17..72e9ac3d04331 100644
--- a/src/wp-includes/blocks/widget-group.php
+++ b/src/wp-includes/blocks/widget-group.php
@@ -14,8 +14,8 @@
* @global int|string $_sidebar_being_rendered
*
* @param array $attributes The block attributes.
- * @param string $content The block content.
- * @param WP_Block $block The block.
+ * @param string $content The block content.
+ * @param WP_Block $block The block.
*
* @return string Rendered block.
*/
diff --git a/src/wp-includes/class-walker-nav-menu.php b/src/wp-includes/class-walker-nav-menu.php
index 3d9f442bb8e87..8047047757cea 100644
--- a/src/wp-includes/class-walker-nav-menu.php
+++ b/src/wp-includes/class-walker-nav-menu.php
@@ -99,13 +99,13 @@ public function start_lvl( &$output, $depth = 0, $args = null ) {
*
* @since 6.3.0
*
- * @param array $atts {
+ * @param array $atts {
* The HTML attributes applied to the `
` element, empty strings are ignored.
*
* @type string $class HTML CSS class attribute.
* }
- * @param stdClass $args An object of `wp_nav_menu()` arguments.
- * @param int $depth Depth of menu item. Used for padding.
+ * @param stdClass $args An object of `wp_nav_menu()` arguments.
+ * @param int $depth Depth of menu item. Used for padding.
*/
$atts = apply_filters( 'nav_menu_submenu_attributes', $atts, $args, $depth );
$attributes = $this->build_atts( $atts );
@@ -215,7 +215,7 @@ public function start_el( &$output, $data_object, $depth = 0, $args = null, $cur
*
* @since 6.3.0
*
- * @param array $li_atts {
+ * @param array $li_atts {
* The HTML attributes applied to the menu item's `- ` element, empty strings are ignored.
*
* @type string $class HTML CSS class attribute.
@@ -281,7 +281,7 @@ public function start_el( &$output, $data_object, $depth = 0, $args = null, $cur
* @since 3.6.0
* @since 4.1.0 The `$depth` parameter was added.
*
- * @param array $atts {
+ * @param array $atts {
* The HTML attributes applied to the menu item's `` element, empty strings are ignored.
*
* @type string $title Title attribute.
diff --git a/src/wp-includes/class-walker-page.php b/src/wp-includes/class-walker-page.php
index bb3929a9dddf4..32f1e9c0551ce 100644
--- a/src/wp-includes/class-walker-page.php
+++ b/src/wp-includes/class-walker-page.php
@@ -176,7 +176,7 @@ public function start_el( &$output, $data_object, $depth = 0, $args = array(), $
*
* @since 4.8.0
*
- * @param array $atts {
+ * @param array $atts {
* The HTML attributes applied to the menu item's `` element, empty strings are ignored.
*
* @type string $href The href attribute.
diff --git a/src/wp-includes/class-wp-admin-bar.php b/src/wp-includes/class-wp-admin-bar.php
index 0cf2cad3fcf24..200d9152002f1 100644
--- a/src/wp-includes/class-wp-admin-bar.php
+++ b/src/wp-includes/class-wp-admin-bar.php
@@ -504,7 +504,7 @@ final protected function _render_container( $node ) {
* @since 3.3.0
* @since 6.5.0 Added `$menu_title` parameter to allow an ARIA menu name.
*
- * @param object $node
+ * @param object $node
* @param string|bool $menu_title The accessible name of this ARIA menu or false if not provided.
*/
final protected function _render_group( $node, $menu_title = false ) {
diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
index e298b04efcf90..0684b3bc626eb 100644
--- a/src/wp-includes/class-wp-customize-manager.php
+++ b/src/wp-includes/class-wp-customize-manager.php
@@ -3250,7 +3250,7 @@ public function grant_edit_post_capability_for_changeset( $caps, $cap, $user_id,
* @since 4.9.0
*
* @param int $changeset_post_id Changeset post ID.
- * @param bool $take_over Whether to take over the changeset. Default false.
+ * @param bool $take_over Whether to take over the changeset. Default false.
*/
public function set_changeset_lock( $changeset_post_id, $take_over = false ) {
if ( $changeset_post_id ) {
diff --git a/src/wp-includes/class-wp-fatal-error-handler.php b/src/wp-includes/class-wp-fatal-error-handler.php
index cb09c6fed84c6..3632e372d4393 100644
--- a/src/wp-includes/class-wp-fatal-error-handler.php
+++ b/src/wp-includes/class-wp-fatal-error-handler.php
@@ -228,8 +228,8 @@ protected function display_default_error_template( $error, $handled ) {
*
* @since 5.2.0
*
- * @param array $args Associative array of arguments passed to `wp_die()`. By default these contain a
- * 'response' key, and optionally 'link_url' and 'link_text' keys.
+ * @param array $args Associative array of arguments passed to `wp_die()`. By default these contain a
+ * 'response' key, and optionally 'link_url' and 'link_text' keys.
* @param array $error Error information retrieved from `error_get_last()`.
*/
$args = apply_filters( 'wp_php_error_args', $args, $error );
diff --git a/src/wp-includes/class-wp-hook.php b/src/wp-includes/class-wp-hook.php
index 38895c87f1349..f7e8b65540bdc 100644
--- a/src/wp-includes/class-wp-hook.php
+++ b/src/wp-includes/class-wp-hook.php
@@ -517,7 +517,7 @@ public function offsetGet( $offset ) {
* @link https://www.php.net/manual/en/arrayaccess.offsetset.php
*
* @param int|null $offset The offset to assign the value to.
- * @param array $value The value to set.
+ * @param array $value The value to set.
* @phpstan-param array $value
*/
#[ReturnTypeWillChange]
diff --git a/src/wp-includes/class-wp-http-requests-hooks.php b/src/wp-includes/class-wp-http-requests-hooks.php
index 80e4eb7ef4b9f..f399acc860229 100644
--- a/src/wp-includes/class-wp-http-requests-hooks.php
+++ b/src/wp-includes/class-wp-http-requests-hooks.php
@@ -68,9 +68,9 @@ public function dispatch( $hook, $parameters = array() ) {
*
* @since 4.7.0
*
- * @param array $parameters Parameters from Requests internal hook.
- * @param array $request Request data in WP_Http format.
- * @param string $url URL to request.
+ * @param array $parameters Parameters from Requests internal hook.
+ * @param array $request Request data in WP_Http format.
+ * @param string $url URL to request.
*/
do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
diff --git a/src/wp-includes/class-wp-image-editor.php b/src/wp-includes/class-wp-image-editor.php
index 8401117836ebc..90a9f12cf16b3 100644
--- a/src/wp-includes/class-wp-image-editor.php
+++ b/src/wp-includes/class-wp-image-editor.php
@@ -259,7 +259,7 @@ public function set_quality( $quality = null, $dims = array() ) {
*
* @param int $quality Quality level between 1 (low) and 100 (high).
* @param string $mime_type Image mime type.
- * @param array $size {
+ * @param array $size {
* Dimensions of the image.
*
* @type int $width The image width.
diff --git a/src/wp-includes/class-wp-oembed.php b/src/wp-includes/class-wp-oembed.php
index 39029bd9a2b8d..8a3f59836bdbc 100644
--- a/src/wp-includes/class-wp-oembed.php
+++ b/src/wp-includes/class-wp-oembed.php
@@ -806,7 +806,7 @@ public function data2html( $data, $url ) {
*
* @param string|false $html Existing HTML.
* @param object $data Data object from WP_oEmbed::data2html()
- * @param string $url The original URL passed to oEmbed.
+ * @param string $url The original URL passed to oEmbed.
* @return string|false Possibly modified $html.
*/
public function _strip_newlines( $html, $data, $url ) {
diff --git a/src/wp-includes/class-wp-session-tokens.php b/src/wp-includes/class-wp-session-tokens.php
index 9482e1b948777..03c41ceeb8e0a 100644
--- a/src/wp-includes/class-wp-session-tokens.php
+++ b/src/wp-includes/class-wp-session-tokens.php
@@ -154,7 +154,7 @@ final public function create( $expiration ) {
*
* @since 4.0.0
*
- * @param string $token Session token to update.
+ * @param string $token Session token to update.
* @param array $session Session information.
*/
final public function update( $token, $session ) {
diff --git a/src/wp-includes/class-wp-theme-json-schema.php b/src/wp-includes/class-wp-theme-json-schema.php
index 47c0f016ec3f3..2fc61b7526efd 100644
--- a/src/wp-includes/class-wp-theme-json-schema.php
+++ b/src/wp-includes/class-wp-theme-json-schema.php
@@ -37,9 +37,9 @@ class WP_Theme_JSON_Schema {
* @since 5.9.0
* @since 6.6.0 Migrate up to v3 and add $origin parameter.
*
- * @param array $theme_json The structure to migrate.
- * @param string $origin Optional. What source of data this object represents.
- * One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
+ * @param array $theme_json The structure to migrate.
+ * @param string $origin Optional. What source of data this object represents.
+ * One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
* @return array The structure in the last version.
*/
public static function migrate( $theme_json, $origin = 'theme' ) {
@@ -100,7 +100,7 @@ private static function migrate_v1_to_v2( $old ) {
*
* @since 6.6.0
*
- * @param array $old Data to migrate.
+ * @param array $old Data to migrate.
* @param string $origin What source of data this object represents.
* One of 'blocks', 'default', 'theme', or 'custom'.
* @return array Data with defaultFontSizes set to false.
@@ -213,7 +213,7 @@ private static function rename_settings( &$settings, $paths_to_rename ) {
* @since 5.9.0
*
* @param array $settings Reference to the current settings array.
- * @param array $path Path to the property to be removed.
+ * @param array $path Path to the property to be removed.
*/
private static function unset_setting_by_path( &$settings, $path ) {
$tmp_settings = &$settings;
diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php
index 7175d7a88747d..af66cf54b7a5c 100644
--- a/src/wp-includes/class-wp-theme-json.php
+++ b/src/wp-includes/class-wp-theme-json.php
@@ -954,11 +954,11 @@ protected static function schema_in_root_and_per_origin( $schema ) {
/**
* Processes pseudo-selectors for any node (block or variation).
*
- * @param array $node The node data (block or variation).
- * @param string $base_selector The base selector.
- * @param array $settings The theme settings.
- * @param string $block_name The block name.
- * @param array|null $block_metadata Metadata about the block to get styles for.
+ * @param array $node The node data (block or variation).
+ * @param string $base_selector The base selector.
+ * @param array $settings The theme settings.
+ * @param string $block_name The block name.
+ * @param array|null $block_metadata Metadata about the block to get styles for.
* @param array|null $style_variation Style variation metadata.
* @return array Array of pseudo-selector declarations.
*/
@@ -2995,11 +2995,11 @@ protected static function flatten_tree( $tree, $prefix = '', $token = '--' ) {
* @since 6.6.0 Pass current theme JSON settings to wp_get_typography_font_size_value(), and process background properties.
* @since 6.7.0 `ref` resolution of background properties, and assigning custom default values.
*
- * @param array $styles Styles to process.
- * @param array $settings Theme settings.
- * @param array $properties Properties metadata.
- * @param array $theme_json Theme JSON array.
- * @param string $selector The style block selector.
+ * @param array $styles Styles to process.
+ * @param array $settings Theme settings.
+ * @param array $properties Properties metadata.
+ * @param array $theme_json Theme JSON array.
+ * @param string $selector The style block selector.
* @param boolean $use_root_padding Whether to add custom properties at root level.
* @return array Returns the modified $declarations.
*/
@@ -3133,8 +3133,8 @@ protected static function compute_style_properties( $styles, $settings = array()
* so every property will be in the standard form.
* @since 6.7.0 Added support for background image refs.
*
- * @param array $styles Styles subtree.
- * @param array $path Which property to process.
+ * @param array $styles Styles subtree.
+ * @param array $path Which property to process.
* @param array $theme_json Theme JSON array.
* @return string|array Style property value.
*/
@@ -4195,7 +4195,7 @@ static function ( $pseudo_selector ) use ( $selector ) {
* Updated specificity of body margin reset and first/last child selectors.
* @since 7.0.0 Added `$options` parameter to control alignment styles output for classic themes.
*
- * @param string $selector The root node selector.
+ * @param string $selector The root node selector.
* @param array $block_metadata The metadata for the root block.
* @param array $options Optional. An array of options for now used for internal purposes only.
* @return string The additional root rules CSS.
@@ -4598,7 +4598,7 @@ protected static function get_default_slugs( $data, $node_path ) {
*
* @since 5.9.0
*
- * @param string $slug The slug we want to find a match from default presets.
+ * @param string $slug The slug we want to find a match from default presets.
* @param array $base_path The path to inspect. It's 'settings' by default.
* @return string|null
*/
@@ -5911,7 +5911,7 @@ function ( $matches ) use ( $variation_class ) {
*
* @since 7.0.0
*
- * @param array $style_variation Style variation metadata.
+ * @param array $style_variation Style variation metadata.
* @param string $feature_selector CSS selector for the feature.
* @return string Feature selector with block style variation selector added.
*/
diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php
index 6a18e7a534daa..a26c7bbd94523 100644
--- a/src/wp-includes/class-wp-theme.php
+++ b/src/wp-includes/class-wp-theme.php
@@ -246,7 +246,7 @@ final class WP_Theme implements ArrayAccess {
*
* @param string $theme_dir Directory of the theme within the theme_root.
* @param string $theme_root Theme root.
- * @param WP_Theme|null $_child If this theme is a parent theme, the child may be passed for validation purposes.
+ * @param WP_Theme|null $_child If this theme is a parent theme, the child may be passed for validation purposes.
*/
public function __construct( $theme_dir, $theme_root, $_child = null ) {
global $wp_theme_directories;
diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
index 43bd68ff972a4..4c49cf8a9b9ce 100644
--- a/src/wp-includes/comment-template.php
+++ b/src/wp-includes/comment-template.php
@@ -924,7 +924,7 @@ function get_comments_number( $post = 0 ) {
* @since 1.5.0
*
* @param string|int $comments_number A string representing the number of comments a post has, otherwise 0.
- * @param int $post_id Post ID.
+ * @param int $post_id Post ID.
*/
return apply_filters( 'get_comments_number', $comments_number, $post_id );
}
diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 7557e9258c87f..817ad17fa97e3 100644
--- a/src/wp-includes/comment.php
+++ b/src/wp-includes/comment.php
@@ -1247,7 +1247,7 @@ function get_page_of_comment( $comment_id, $args = array() ) {
* @type int $per_page Number of comments per page.
* @type int $max_depth Maximum comment threading depth allowed.
* }
- * @param int $comment_id ID of the comment.
+ * @param int $comment_id ID of the comment.
*/
return apply_filters( 'get_page_of_comment', (int) $page, $args, $original_args, $comment_id );
}
@@ -3445,8 +3445,8 @@ function wp_should_disable_pings_for_environment() {
*
* @since 7.1.0
*
- * @param bool $should_disable Whether pings should be disabled. Default true
- * for non-production environments, false for production.
+ * @param bool $should_disable Whether pings should be disabled. Default true
+ * for non-production environments, false for production.
* @param string $environment_type The current environment type as returned by
* wp_get_environment_type().
*/
@@ -3685,7 +3685,7 @@ function trackback( $trackback_url, $title, $excerpt, $post_id ) {
* @since 1.2.0
*
* @param string $server Host of blog to connect to.
- * @param string $path Path to send the ping.
+ * @param string $path Path to send the ping.
*/
function weblog_ping( $server = '', $path = '' ) {
require_once ABSPATH . WPINC . '/class-IXR.php';
diff --git a/src/wp-includes/cron.php b/src/wp-includes/cron.php
index 3fb6a29cb8dc7..4259e8cf151cf 100644
--- a/src/wp-includes/cron.php
+++ b/src/wp-includes/cron.php
@@ -787,12 +787,12 @@ function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) {
*
* @since 5.1.0
*
- * @param null|false|object $pre Value to return instead. Default null to continue retrieving the event.
- * @param string $hook Action hook of the event.
- * @param array $args Array containing each separate argument to pass to the hook's callback function.
- * Although not passed to a callback, these arguments are used to uniquely identify
- * the event.
- * @param int|null $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event.
+ * @param null|false|object $pre Value to return instead. Default null to continue retrieving the event.
+ * @param string $hook Action hook of the event.
+ * @param array $args Array containing each separate argument to pass to the hook's callback function.
+ * Although not passed to a callback, these arguments are used to uniquely identify
+ * the event.
+ * @param int|null $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event.
*/
$pre = apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp );
@@ -966,7 +966,7 @@ function spawn_cron( $gmt_time = 0 ) {
* @since 3.5.0
* @since 4.5.0 The `$doing_wp_cron` parameter was added.
*
- * @param array $cron_request_array {
+ * @param array $cron_request_array {
* An array of cron request URL arguments.
*
* @type string $url The cron request URL.
@@ -979,7 +979,7 @@ function spawn_cron( $gmt_time = 0 ) {
* @type bool $sslverify Whether SSL should be verified for the request. Default false.
* }
* }
- * @param string $doing_wp_cron The Unix timestamp (UTC) of the cron lock with microseconds.
+ * @param string $doing_wp_cron The Unix timestamp (UTC) of the cron lock with microseconds.
*/
$cron_request = apply_filters(
'cron_request',
diff --git a/src/wp-includes/customize/class-wp-customize-selective-refresh.php b/src/wp-includes/customize/class-wp-customize-selective-refresh.php
index 3077d09dcf75e..c4f0d5d3f94e8 100644
--- a/src/wp-includes/customize/class-wp-customize-selective-refresh.php
+++ b/src/wp-includes/customize/class-wp-customize-selective-refresh.php
@@ -417,7 +417,7 @@ public function handle_render_partials_request() {
*
* @since 4.5.0
*
- * @param array $response {
+ * @param array $response {
* Response.
*
* @type array $contents Associative array mapping a partial ID its corresponding array of contents
diff --git a/src/wp-includes/embed.php b/src/wp-includes/embed.php
index 003c36cf9de58..e87cf4ec57989 100644
--- a/src/wp-includes/embed.php
+++ b/src/wp-includes/embed.php
@@ -98,7 +98,7 @@ function wp_embed_defaults( $url = '' ) {
*
* @see WP_oEmbed
*
- * @param string $url The URL that should be embedded.
+ * @param string $url The URL that should be embedded.
* @param array|string $args {
* Optional. Additional arguments for retrieving embed HTML. Default empty.
*
@@ -264,8 +264,8 @@ function wp_embed_handler_youtube( $matches, $attr, $url, $rawattr ) {
* @since 3.6.0
*
* @param array $matches The RegEx matches from the provided regex when calling wp_embed_register_handler().
- * @param array $attr Embed attributes.
- * @param string $url The original URL that was matched by the regex.
+ * @param array $attr Embed attributes.
+ * @param string $url The original URL that was matched by the regex.
* @param array $rawattr The original unmodified attributes.
* @return string The embed HTML.
*/
diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
index 94f8b3da849cb..1c0b62cf1e14f 100644
--- a/src/wp-includes/formatting.php
+++ b/src/wp-includes/formatting.php
@@ -3840,9 +3840,9 @@ function sanitize_email( $email ) {
*
* @since 2.8.0
*
- * @param string $sanitized_email The sanitized email address.
- * @param string $email The email address, as provided to sanitize_email().
- * @param string|null $message A message to pass to the user. null if email is sanitized.
+ * @param string $sanitized_email The sanitized email address.
+ * @param string $email The email address, as provided to sanitize_email().
+ * @param string|null $message A message to pass to the user. null if email is sanitized.
*/
return apply_filters( 'sanitize_email', '', $email, 'email_too_short' );
}
diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index a60bb57df7178..331b397aeb101 100644
--- a/src/wp-includes/functions.php
+++ b/src/wp-includes/functions.php
@@ -3795,7 +3795,7 @@ function wp_nonce_ays( $action ) {
* error data with the key 'title' may be used to specify the title.
* If `$title` is an integer, then it is treated as the response code.
* Default empty string.
- * @param string|array|int $args {
+ * @param string|array|int $args {
* Optional. Arguments to control behavior. If `$args` is an integer, then it is treated
* as the response code. Default empty array.
*
@@ -8357,7 +8357,7 @@ function wp_site_admin_email_change_notification( $old_email, $new_email, $optio
*
* @since 4.9.0
*
- * @param array $email_change_email {
+ * @param array $email_change_email {
* Used to build wp_mail().
*
* @type string $to The intended recipient.
@@ -8370,8 +8370,8 @@ function wp_site_admin_email_change_notification( $old_email, $new_email, $optio
* - `###SITEURL###` The URL to the site.
* @type string $headers Headers.
* }
- * @param string $old_email The old site admin email address.
- * @param string $new_email The new site admin email address.
+ * @param string $old_email The old site admin email address.
+ * @param string $new_email The new site admin email address.
*/
$email_change_email = apply_filters( 'site_admin_email_change_email', $email_change_email, $old_email, $new_email );
@@ -8913,7 +8913,7 @@ function wp_get_direct_update_https_url() {
* @since MU (3.0.0)
* @since 5.2.0 $max_execution_time parameter added.
*
- * @param string $directory Full path of a directory.
+ * @param string $directory Full path of a directory.
* @param int $max_execution_time Maximum time to run before giving up. In seconds.
* The timeout is global and is measured from the moment WordPress started to load.
* @return int|false|null Size in bytes if a valid directory. False if not. Null if timeout.
diff --git a/src/wp-includes/functions.wp-scripts.php b/src/wp-includes/functions.wp-scripts.php
index 5e9589252124b..52504b890ad65 100644
--- a/src/wp-includes/functions.wp-scripts.php
+++ b/src/wp-includes/functions.wp-scripts.php
@@ -445,7 +445,7 @@ function wp_deregister_script( $handle ) {
* as a query string for cache busting purposes. If version is set to false, a version
* number is automatically added equal to current installed WordPress version.
* If set to null, no version is added.
- * @param array|bool $args {
+ * @param array|bool $args {
* Optional. An array of extra args for the script. Default empty array.
* Otherwise, it may be a boolean in which case it determines whether the script is printed in the footer. Default false.
*
diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index 22a1d3e307d3e..719106687d8be 100644
--- a/src/wp-includes/general-template.php
+++ b/src/wp-includes/general-template.php
@@ -4770,7 +4770,7 @@ function get_language_attributes( $doctype = 'html' ) {
* @since 2.5.0
* @since 4.3.0 Added the `$doctype` parameter.
*
- * @param string $output A space-separated list of language attributes.
+ * @param string $output A space-separated list of language attributes.
* @param string $doctype The type of HTML document (xhtml|html).
*/
return apply_filters( 'language_attributes', $output, $doctype );
diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
index 484a8c8f8591c..10c67ae2d1b06 100644
--- a/src/wp-includes/link-template.php
+++ b/src/wp-includes/link-template.php
@@ -2005,9 +2005,9 @@ function get_adjacent_post( $in_same_term = false, $excluded_terms = '', $previo
* @since 4.9.0 Added the `$order` parameter.
* @since 6.9.0 Adds ID sort to ensure deterministic ordering for posts with identical dates.
*
- * @param string $order_by The `ORDER BY` clause in the SQL.
- * @param WP_Post $post WP_Post object.
- * @param string $order Sort order. 'DESC' for previous post, 'ASC' for next.
+ * @param string $order_by The `ORDER BY` clause in the SQL.
+ * @param WP_Post $post WP_Post object.
+ * @param string $order Sort order. 'DESC' for previous post, 'ASC' for next.
*/
$sort = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order, p.ID $order LIMIT 1", $post, $order );
diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
index 27c58b57dd671..9d407453424c5 100644
--- a/src/wp-includes/load.php
+++ b/src/wp-includes/load.php
@@ -2042,8 +2042,8 @@ function wp_is_site_protected_by_basic_auth( $context = '' ) {
*
* @since 5.6.1
*
- * @param bool $is_protected Whether the site is protected by Basic Auth.
- * @param string $context The context to check for protection. One of 'login', 'admin', or 'front'.
+ * @param bool $is_protected Whether the site is protected by Basic Auth.
+ * @param string $context The context to check for protection. One of 'login', 'admin', or 'front'.
*/
return apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context );
}
diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
index 075ca04700489..8069095738d9c 100644
--- a/src/wp-includes/media.php
+++ b/src/wp-includes/media.php
@@ -1619,7 +1619,7 @@ function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac
* pixel density value if paired with an 'x' descriptor.
* }
* }
- * @param array $size_array {
+ * @param array $size_array {
* An array of requested width and height values.
*
* @type int $0 The width in pixels.
@@ -4124,11 +4124,11 @@ function get_adjacent_image_link( $prev = true, $size = 'thumbnail', $text = fal
*
* @since 3.5.0
*
- * @param string $output Adjacent image HTML markup.
- * @param int $attachment_id Attachment ID
- * @param string|int[] $size Requested image size. Can be any registered image size name, or
- * an array of width and height values in pixels (in that order).
- * @param string $text Link text.
+ * @param string $output Adjacent image HTML markup.
+ * @param int $attachment_id Attachment ID
+ * @param string|int[] $size Requested image size. Can be any registered image size name, or
+ * an array of width and height values in pixels (in that order).
+ * @param string $text Link text.
*/
return apply_filters( "{$adjacent}_image_link", $output, $attachment_id, $size, $text );
}
diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
index c657c6c2e7af3..577785c2163a0 100644
--- a/src/wp-includes/meta.php
+++ b/src/wp-includes/meta.php
@@ -1427,7 +1427,7 @@ function sanitize_meta( $meta_key, $meta_value, $object_type, $object_subtype =
* @type bool $revisions_enabled Whether to enable revisions support for this meta_key. Can only be used when the
* object type is 'post'.
* }
- * @param string|array $deprecated Deprecated. Use `$args` instead.
+ * @param string|array $deprecated Deprecated. Use `$args` instead.
* @return bool True if the meta key was successfully registered in the global array, false if not.
* Registering a meta key with distinct sanitize and auth callbacks will fire those callbacks,
* but will not add to the global registry.
diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php
index 3da25da165b63..81dda98f3e312 100644
--- a/src/wp-includes/ms-functions.php
+++ b/src/wp-includes/ms-functions.php
@@ -1851,7 +1851,7 @@ function wpmu_new_site_admin_notification( $site_id, $user_id ) {
*
* @since 5.6.0
*
- * @param array $new_site_email {
+ * @param array $new_site_email {
* Used to build wp_mail().
*
* @type string $to The email address of the recipient.
@@ -1859,8 +1859,8 @@ function wpmu_new_site_admin_notification( $site_id, $user_id ) {
* @type string $message The content of the email.
* @type string $headers Headers.
* }
- * @param WP_Site $site Site object of the new site.
- * @param WP_User $user User object of the administrator of the new site.
+ * @param WP_Site $site Site object of the new site.
+ * @param WP_User $user User object of the administrator of the new site.
*/
$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
@@ -2940,7 +2940,7 @@ function wp_network_admin_email_change_notification( $option_name, $new_email, $
*
* @since 4.9.0
*
- * @param array $email_change_email {
+ * @param array $email_change_email {
* Used to build wp_mail().
*
* @type string $to The intended recipient.
@@ -2953,9 +2953,9 @@ function wp_network_admin_email_change_notification( $option_name, $new_email, $
* - `###SITEURL###` The URL to the site.
* @type string $headers Headers.
* }
- * @param string $old_email The old network admin email address.
- * @param string $new_email The new network admin email address.
- * @param int $network_id ID of the network.
+ * @param string $old_email The old network admin email address.
+ * @param string $new_email The new network admin email address.
+ * @param int $network_id ID of the network.
*/
$email_change_email = apply_filters( 'network_admin_email_change_email', $email_change_email, $old_email, $new_email, $network_id );
diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
index 8bd6a1821162e..83bd516793ecc 100644
--- a/src/wp-includes/option.php
+++ b/src/wp-includes/option.php
@@ -2978,7 +2978,7 @@ function register_initial_settings() {
* @param string $option_group A settings group name. Should correspond to an allowed option key name.
* Default allowed option key names include 'general', 'discussion', 'media',
* 'reading', 'writing', and 'options'.
- * @param string $option_name The name of an option to sanitize and save.
+ * @param string $option_name The name of an option to sanitize and save.
* @param array $args {
* Data used to describe the setting when registered.
*
diff --git a/src/wp-includes/pomo/mo.php b/src/wp-includes/pomo/mo.php
index 1bbc40ab65aa2..e022b5c7afae1 100644
--- a/src/wp-includes/pomo/mo.php
+++ b/src/wp-includes/pomo/mo.php
@@ -310,8 +310,8 @@ public function import_from_reader( $reader ) {
* found in a MO file
*
* @static
- * @param string $original original string to translate from MO file. Might contain
- * 0x04 as context separator or 0x00 as singular/plural separator
+ * @param string $original original string to translate from MO file. Might contain
+ * 0x04 as context separator or 0x00 as singular/plural separator
* @param string $translation translation string from MO file. Might contain
* 0x00 as a plural translations separator
* @return Translation_Entry Entry instance.
diff --git a/src/wp-includes/pomo/translations.php b/src/wp-includes/pomo/translations.php
index c4a9ba72d6755..64b9295ee6634 100644
--- a/src/wp-includes/pomo/translations.php
+++ b/src/wp-includes/pomo/translations.php
@@ -91,7 +91,7 @@ public function add_entry_or_merge( $entry ) {
* @since 2.8.0
*
* @param string $header header name, without trailing :
- * @param string $value header value, without trailing \n
+ * @param string $value header value, without trailing \n
*/
public function set_header( $header, $value ) {
$this->headers[ $header ] = $value;
diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
index cb693fb48517f..31e4c4dda85f4 100644
--- a/src/wp-includes/post-template.php
+++ b/src/wp-includes/post-template.php
@@ -1619,7 +1619,7 @@ function walk_page_dropdown_tree( ...$args ) {
* @param int|WP_Post $post Optional. Post ID or post object.
* @param bool $fullsize Optional. Whether to use full size. Default false.
* @param bool $deprecated Deprecated. Not used.
- * @param bool $permalink Optional. Whether to include permalink. Default false.
+ * @param bool $permalink Optional. Whether to include permalink. Default false.
*/
function the_attachment_link( $post = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
if ( ! empty( $deprecated ) ) {
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index 2db73e9a20476..ee6a16bc286ed 100644
--- a/src/wp-includes/post.php
+++ b/src/wp-includes/post.php
@@ -5907,7 +5907,7 @@ function wp_set_post_categories( $post_id = 0, $post_categories = array(), $appe
*
* @param string $new_status Transition to this post status.
* @param string $old_status Previous post status.
- * @param WP_Post $post Post data.
+ * @param WP_Post $post Post data.
*/
function wp_transition_post_status( $new_status, $old_status, $post ) {
/**
@@ -8677,7 +8677,7 @@ function get_available_post_mime_types( $type = 'attachment' ) {
* @since 5.4.0 Added the `$unfiltered` parameter.
*
* @param int $attachment_id Attachment ID.
- * @param bool $unfiltered Optional. Passed through to `get_attached_file()`. Default false.
+ * @param bool $unfiltered Optional. Passed through to `get_attached_file()`. Default false.
* @return string|false Path to the original image file or false if the attachment is not an image.
*/
function wp_get_original_image_path( $attachment_id, $unfiltered = false ) {
diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php
index 892716b5d69e0..af81ea640b617 100644
--- a/src/wp-includes/rest-api.php
+++ b/src/wp-includes/rest-api.php
@@ -1885,7 +1885,7 @@ function rest_find_matching_pattern_property_schema( $property, $args ) {
* @since 5.6.0
*
* @param string $param The parameter name.
- * @param array $error The error details.
+ * @param array $error The error details.
* @return WP_Error
*/
function rest_format_combining_operation_error( $param, $error ) {
diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php
index c7ffb5b7677d0..7a40bd9b20d23 100644
--- a/src/wp-includes/rest-api/class-wp-rest-server.php
+++ b/src/wp-includes/rest-api/class-wp-rest-server.php
@@ -259,7 +259,7 @@ protected function get_json_encode_options( WP_REST_Request $request ) {
*
* @since 6.1.0
*
- * @param int $options JSON encoding options {@see json_encode()}.
+ * @param int $options JSON encoding options {@see json_encode()}.
* @param WP_REST_Request $request Current request object.
*/
return apply_filters( 'rest_json_encode_options', $options, $request );
@@ -1914,7 +1914,7 @@ protected function set_status( $code ) {
*
* @since 4.4.0
*
- * @param string $key Header key.
+ * @param string $key Header key.
* @param string $value Header value.
*/
public function send_header( $key, $value ) {
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-categories-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-categories-controller.php
index abbce844ef52a..7b0235cb8b571 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-categories-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-categories-controller.php
@@ -185,7 +185,7 @@ public function get_item_permissions_check( $request ) {
* @since 6.9.0
*
* @param WP_Ability_Category $category The ability category object.
- * @param WP_REST_Request $request Request object.
+ * @param WP_REST_Request $request Request object.
* @return WP_REST_Response Response object.
*/
public function prepare_item_for_response( $category, $request ) {
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
index d14aefb1f6308..dfe49465951c5 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
@@ -523,10 +523,10 @@ public function create_item_permissions_check( $request ) {
*
* @since 4.7.0
*
- * @param bool $allow_anonymous Whether to allow anonymous comments to
- * be created. Default `false`.
- * @param WP_REST_Request $request Request used to generate the
- * response.
+ * @param bool $allow_anonymous Whether to allow anonymous comments to
+ * be created. Default `false`.
+ * @param WP_REST_Request $request Request used to generate the
+ * response.
*/
$allow_anonymous = apply_filters( 'rest_allow_anonymous_comments', false, $request );
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php
index 396d657fd2546..919714c5a96ef 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php
@@ -322,9 +322,9 @@ public function delete_item( $request ) {
*
* @since 5.9.0
*
- * @param object $nav_menu_item Inserted or updated menu item object.
- * @param WP_REST_Response $response The response data.
- * @param WP_REST_Request $request Request object.
+ * @param object $nav_menu_item Inserted or updated menu item object.
+ * @param WP_REST_Response $response The response data.
+ * @param WP_REST_Request $request Request object.
*/
do_action( 'rest_delete_nav_menu_item', $menu_item, $response, $request );
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
index 0121298105ebf..2dbba2b6d5e1d 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
@@ -527,10 +527,10 @@ public function delete_item( $request ) {
*
* @since 4.7.0
*
- * @param WP_Post|false|null $result The revision object (if it was deleted or moved to the Trash successfully)
- * or false or null (failure). If the revision was moved to the Trash, $result represents
- * its new state; if it was deleted, $result represents its state before deletion.
- * @param WP_REST_Request $request The request sent to the API.
+ * @param WP_Post|false|null $result The revision object (if it was deleted or moved to the Trash successfully)
+ * or false or null (failure). If the revision was moved to the Trash, $result represents
+ * its new state; if it was deleted, $result represents its state before deletion.
+ * @param WP_REST_Request $request The request sent to the API.
*/
do_action( 'rest_delete_revision', $result, $request );
diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
index a36fe356e9070..cd905188512b3 100644
--- a/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
+++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
@@ -572,7 +572,7 @@ private function get_widget_preview( $widget, $instance ) {
* @since 5.8.0
*
* @param WP_Widget $widget_object Widget object to call widget() on.
- * @param array $instance Widget instance settings.
+ * @param array $instance Widget instance settings.
* @return string
*/
private function get_widget_form( $widget_object, $instance ) {
@@ -620,7 +620,7 @@ public function render( $request ) {
*
* @since 5.9.0
*
- * @param string $id_base The id base of the requested widget.
+ * @param string $id_base The id base of the requested widget.
* @param array $instance The widget instance attributes.
* @return string Rendered Legacy Widget block preview.
*/
diff --git a/src/wp-includes/sitemaps/providers/class-wp-sitemaps-users.php b/src/wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
index 8e9f57dc6cfa0..a2ce30a4eb604 100644
--- a/src/wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
+++ b/src/wp-includes/sitemaps/providers/class-wp-sitemaps-users.php
@@ -46,7 +46,7 @@ public function get_url_list( $page_num, $object_subtype = '' ) {
* @since 5.5.0
*
* @param array[]|null $url_list The URL list. Default null.
- * @param int $page_num Page of results.
+ * @param int $page_num Page of results.
*/
$url_list = apply_filters(
'wp_sitemaps_users_pre_url_list',
diff --git a/src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php b/src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php
index 02dbfb675a17b..ea55ceaa64f79 100644
--- a/src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php
+++ b/src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php
@@ -125,7 +125,7 @@ public function get_all_rules() {
* @since 6.1.0
* @since 6.6.0 Added the $rules_group parameter.
*
- * @param string $selector The CSS selector.
+ * @param string $selector The CSS selector.
* @param string $rules_group A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
* such as `@media (min-width: 80rem)` or `@layer module`.
* @return WP_Style_Engine_CSS_Rule|null Returns a WP_Style_Engine_CSS_Rule object,
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 29317f0a8bf9b..bb751e6cafb09 100644
--- a/src/wp-includes/taxonomy.php
+++ b/src/wp-includes/taxonomy.php
@@ -1807,8 +1807,8 @@ function sanitize_term_field( $field, $value, $term_id, $taxonomy, $context ) {
*
* @since 2.3.0
*
- * @param mixed $value Value of the term field.
- * @param int $term_id Term ID.
+ * @param mixed $value Value of the term field.
+ * @param int $term_id Term ID.
* @param string $taxonomy Taxonomy slug.
*/
$value = apply_filters( "edit_term_{$field}", $value, $term_id, $taxonomy );
@@ -3694,7 +3694,7 @@ function clean_object_term_cache( $object_ids, $object_type ) {
*
* @since 2.5.0
*
- * @param array $object_ids An array of object IDs.
+ * @param array $object_ids An array of object IDs.
* @param string $object_type Object type.
*/
do_action( 'clean_object_term_cache', $object_ids, $object_type );
diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
index 3262ebde134f2..9c18c71792ee8 100644
--- a/src/wp-includes/theme.php
+++ b/src/wp-includes/theme.php
@@ -1010,7 +1010,7 @@ function validate_theme_requirements( $stylesheet ) {
* @since 6.9.0
*
* @param bool|WP_Error $met_requirements True if the theme meets requirements, WP_Error if not.
- * @param string $stylesheet Directory name for the theme.
+ * @param string $stylesheet Directory name for the theme.
*/
return apply_filters( 'validate_theme_requirements', true, $stylesheet );
}
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 1a1ce8359ccbe..1ad9cc7afc3d8 100644
--- a/src/wp-includes/user.php
+++ b/src/wp-includes/user.php
@@ -2592,7 +2592,7 @@ function wp_insert_user( $userdata ) {
* @since 4.4.0
* @since 5.8.0 The `$userdata` parameter was added.
*
- * @param array $meta {
+ * @param array $meta {
* Default meta values and keys for the user.
*
* @type string $nickname The user's nickname. Default is the user's username.
@@ -3455,7 +3455,7 @@ function retrieve_password( $user_login = '' ) {
*
* @since 6.0.0
*
- * @param array $defaults {
+ * @param array $defaults {
* The default notification email arguments. Used to build wp_mail().
*
* @type string $to The intended recipient - user email address.
diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
index 7a3cb5673a4fa..fb4f3d2b05222 100644
--- a/src/wp-includes/widgets.php
+++ b/src/wp-includes/widgets.php
@@ -1999,7 +1999,7 @@ function wp_assign_widget_to_sidebar( $widget_id, $sidebar_id ) {
* @global array $wp_registered_widgets The registered widgets.
* @global array $wp_registered_sidebars The registered sidebars.
*
- * @param string $widget_id Widget ID.
+ * @param string $widget_id Widget ID.
* @param string $sidebar_id Sidebar ID.
* @return string
*/