mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Convert various uses of (optional) in core parameter descriptions to use the style prescribed in the inline documentation standards for PHP.
The style for marking parameters optional in inline PHP docs is: `@param type $var Optional. Description. Accepts. Default.`, where Accepts can be omitted on a case-by-case basis. Props coffee2code. Fixes #30591. git-svn-id: https://develop.svn.wordpress.org/trunk@30753 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2015,14 +2015,14 @@ function wp_update_user($userdata) {
|
||||
* A simpler way of inserting an user into the database.
|
||||
*
|
||||
* Creates a new user with just the username, password, and email. For more
|
||||
* complex user creation use wp_insert_user() to specify more information.
|
||||
* complex user creation use {@see wp_insert_user()} to specify more information.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @see wp_insert_user() More complete way to create a new user
|
||||
*
|
||||
* @param string $username The user's username.
|
||||
* @param string $password The user's password.
|
||||
* @param string $email The user's email (optional).
|
||||
* @param string $email Optional. The user's email. Default empty.
|
||||
* @return int The new user's ID.
|
||||
*/
|
||||
function wp_create_user($username, $password, $email = '') {
|
||||
|
||||
Reference in New Issue
Block a user