From 3299e358d21fb80b8257fc50f1b1f40f19c2d10c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 Mar 2014 18:04:07 +0000 Subject: [PATCH] Default value for $credentials parameter in wp_signon() should be an array, not a string. props tivnet. fixes #27130. git-svn-id: https://develop.svn.wordpress.org/trunk@27350 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 731b5264b4..c4963ba16b 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -22,7 +22,7 @@ * @param bool $secure_cookie Optional. Whether to use secure cookie. * @return object Either WP_Error on failure, or WP_User on success. */ -function wp_signon( $credentials = '', $secure_cookie = '' ) { +function wp_signon( $credentials = array(), $secure_cookie = '' ) { if ( empty($credentials) ) { if ( ! empty($_POST['log']) ) $credentials['user_login'] = $_POST['log'];