Make WordPress Core

Ticket #27130: 27130.patch

File 27130.patch, 604 bytes (added by SergeyBiryukov, 12 years ago)
  • src/wp-includes/user.php

     
    2222 * @param bool $secure_cookie Optional. Whether to use secure cookie.
    2323 * @return object Either WP_Error on failure, or WP_User on success.
    2424 */
    25 function wp_signon( $credentials = '', $secure_cookie = '' ) {
     25function wp_signon( $credentials = array(), $secure_cookie = '' ) {
    2626        if ( empty($credentials) ) {
    2727                if ( ! empty($_POST['log']) )
    2828                        $credentials['user_login'] = $_POST['log'];