Make WordPress Core

Changeset 33725


Ignore:
Timestamp:
08/24/2015 10:22:33 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Clarify the return description for wp_create_user() to illustrate that a WP_Error object will be returned on failure.

Props jmayhak
Fixes #33321.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r33716 r33725  
    23662366 * @param string $password The user's password.
    23672367 * @param string $email    Optional. The user's email. Default empty.
    2368  * @return int|WP_Error The new user's ID.
     2368 * @return int|WP_Error The newly created user's ID or a WP_Error object if the user could not
     2369 *                      be created.
    23692370 */
    23702371function wp_create_user($username, $password, $email = '') {
Note: See TracChangeset for help on using the changeset viewer.