From b68ae42ddd5919454061904c0a1d0f8d9d0c76be Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 26 Sep 2015 13:10:47 +0000 Subject: [PATCH] Docs: Add missing parameter documentation for `$profileuser` in the hook doc for `show_password_fields`, added in [11302]. Also adds a changelog entry for when the parameter was introduced. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@34592 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index 3646e0f9d2..5f4ac67bcb 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -442,9 +442,11 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c * Filter the display of the password fields. * * @since 1.5.1 + * @since 2.8.0 Add the `$profileuser` parameter. * @since 4.4.0 Now evaluated only in user-edit.php. * - * @param bool $show Whether to show the password fields. Default true. + * @param bool $show Whether to show the password fields. Default true. + * @param WP_User $profileuser User object for the current user to edit. */ if ( $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ) ) : ?>