diff --git a/wp-includes/user.php b/wp-includes/user.php index 7fc0dfb584..867df81e16 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -26,13 +26,24 @@ * * @global string $auth_secure_cookie * - * @param array $credentials Optional. User info in order to sign on. + * @param array $credentials { + * Optional. User info in order to sign on. + * + * @type string $user_login Username. + * @type string $user_password User password. + * @type bool $remember Whether to 'remember' the user. Increases the time + * that the cookie will be kept. Default false. + * } * @param string|bool $secure_cookie Optional. Whether to use secure cookie. * @return WP_User|WP_Error WP_User on success, WP_Error on failure. */ function wp_signon( $credentials = array(), $secure_cookie = '' ) { if ( empty( $credentials ) ) { - $credentials = array(); // Back-compat for plugins passing an empty string. + $credentials = array( + 'user_login' => '', + 'user_password' => '', + 'remember' => false, + ); if ( ! empty( $_POST['log'] ) ) { $credentials['user_login'] = wp_unslash( $_POST['log'] ); diff --git a/wp-includes/version.php b/wp-includes/version.php index d80aa669d7..14aa06f560 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55300'; +$wp_version = '6.2-beta1-55301'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.