Default value for $credentials parameter in wp_signon() should be an array, not a string.
props tivnet. fixes #27130. Built from https://develop.svn.wordpress.org/trunk@27350 git-svn-id: http://core.svn.wordpress.org/trunk@27201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dc32494f74
commit
45ac85f67f
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue