WordPress.org

Make WordPress Core

Ticket #49087: 49087.diff

File 49087.diff, 1.0 KB (added by audrasjb, 4 months ago)

Docs: improve params documentation for wp_insert_user()

  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index 964ec9b8d1..52f88d87ac 100644
    a b function validate_username( $username ) { 
    15131513 *     @type string      $user_activation_key  Password reset key. Default empty.
    15141514 *     @type bool        $spam                 Multisite only. Whether the user is marked as spam.
    15151515 *                                             Default false.
    1516  *     @type string|bool $show_admin_bar_front Whether to display the Admin Bar for the user on the
    1517  *                                             site's front end. Default true.
     1516 *     @type string      $show_admin_bar_front Whether to display the Admin Bar for the user on the
     1517 *                                             site's front end. Accepts 'true' or 'false'.
     1518 *                                             Default 'true'.
    15181519 *     @type string      $role                 User's role.
    15191520 *     @type string      $locale               User's locale. Default empty.
    15201521 * }