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
This commit is contained in:
parent
411f0f126e
commit
b68ae42ddd
@ -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 ) ) :
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user