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
This commit is contained in:
parent
c0d3d7627b
commit
b6046636f0
@ -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 );
|
||||
}
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
?>
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user