Changeset 55301 for trunk/src/wp-includes/user.php
- Timestamp:
- 02/09/2023 01:29:42 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r55161 r55301 27 27 * @global string $auth_secure_cookie 28 28 * 29 * @param array $credentials Optional. User info in order to sign on. 29 * @param array $credentials { 30 * Optional. User info in order to sign on. 31 * 32 * @type string $user_login Username. 33 * @type string $user_password User password. 34 * @type bool $remember Whether to 'remember' the user. Increases the time 35 * that the cookie will be kept. Default false. 36 * } 30 37 * @param string|bool $secure_cookie Optional. Whether to use secure cookie. 31 38 * @return WP_User|WP_Error WP_User on success, WP_Error on failure. … … 33 40 function wp_signon( $credentials = array(), $secure_cookie = '' ) { 34 41 if ( empty( $credentials ) ) { 35 $credentials = array(); // Back-compat for plugins passing an empty string. 42 $credentials = array( 43 'user_login' => '', 44 'user_password' => '', 45 'remember' => false, 46 ); 36 47 37 48 if ( ! empty( $_POST['log'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.