From b6046636f015f6e1fac6b565f883fa9679b90a72 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 23 Jul 2020 19:04:38 +0000 Subject: [PATCH] Docs: Use more appropriate variable names in the inline docs for action and filter parameters. See #49572 git-svn-id: https://develop.svn.wordpress.org/trunk@48585 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-comments-list-table.php | 4 ++-- src/wp-admin/includes/comment.php | 2 +- src/wp-includes/class-wp-rewrite.php | 2 +- src/wp-includes/feed-rss2-comments.php | 4 ++-- src/wp-includes/user.php | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index b76ad9162a..8e90297891 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -1014,8 +1014,8 @@ class WP_Comments_List_Table extends WP_List_Table { * * @since 2.8.0 * - * @param string $column_name The custom column's name. - * @param int $comment->comment_ID The custom column's unique ID number. + * @param string $column_name The custom column's name. + * @param int $comment_ID The custom column's unique ID number. */ do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); } diff --git a/src/wp-admin/includes/comment.php b/src/wp-admin/includes/comment.php index 66c4556a55..89022949b1 100644 --- a/src/wp-admin/includes/comment.php +++ b/src/wp-admin/includes/comment.php @@ -122,7 +122,7 @@ function get_comment_to_edit( $id ) { * * @since 2.0.0 * - * @param string $comment->comment_content Comment content. + * @param string $comment_content Comment content. */ $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content ); diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php index 7411277660..95a0386706 100644 --- a/src/wp-includes/class-wp-rewrite.php +++ b/src/wp-includes/class-wp-rewrite.php @@ -1443,7 +1443,7 @@ class WP_Rewrite { * * @since 1.5.0 * - * @param string[] $this->rules The compiled array of rewrite rules, keyed by their regex pattern. + * @param string[] $rules The compiled array of rewrite rules, keyed by their regex pattern. */ $this->rules = apply_filters( 'rewrite_rules_array', $this->rules ); diff --git a/src/wp-includes/feed-rss2-comments.php b/src/wp-includes/feed-rss2-comments.php index 5cbd06c1f0..bf69a4d3ae 100644 --- a/src/wp-includes/feed-rss2-comments.php +++ b/src/wp-includes/feed-rss2-comments.php @@ -110,8 +110,8 @@ do_action( 'rss_tag_pre', 'rss2-comments' ); * * @since 2.1.0 * - * @param int $comment->comment_ID The ID of the comment being displayed. - * @param int $comment_post->ID The ID of the post the comment is connected to. + * @param int $comment_ID The ID of the comment being displayed. + * @param int $ID The ID of the post the comment is connected to. */ do_action( 'commentrss2_item', $comment->comment_ID, $comment_post->ID ); ?> diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 63047c7219..10c325587d 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -2319,8 +2319,8 @@ function get_password_reset_key( $user ) { * * @since 2.7.0 * - * @param bool $allow Whether to allow the password to be reset. Default true. - * @param int $user_data->ID The ID of the user attempting to reset a password. + * @param bool $allow Whether to allow the password to be reset. Default true. + * @param int $ID The ID of the user attempting to reset a password. */ $allow = apply_filters( 'allow_password_reset', $allow, $user->ID );