I am trying to find out where the problem is in this chunk of code. I am getting this error: The bold line below is line 506. Also, is it normal to have that much white space between lines in the code.
'Parse error: syntax error, unexpected ',' in /homepages/37/d193440522/htdocs/knockout/wp-includes/pluggable.php on line 506'
' if ( !function_exists('wp_login') ) :
function wp_login($username,
$password, $already_md5 = false) {
global $wpdb, $error;
$username =
sanitize_user($username);
if ( '' == $username )
return false;
if ( '' == $password ) {
$error = __('ERROR: The
password field is empty.');
return false;
}
$login =
get_userdatabylogin($username);
//$login = $wpdb->get_row("SELECT ID,
user_login, user_pass FROM $wpdb->users WHERE user_login = '$username'");
if (!$login) {
$error = __('ERROR: Invalid
username.');
return false;
} else {
// If the
password is already_md5, it has been double hashed.
// Otherwise, it is plain text.
if ( ($already_md5 && md5($login->user_pass) ==
$password) || ($login->user_login == $username && $login->user_pass ==
md5($password)) ) {
return true;
} else {
$error = __('ERROR: Incorrect password.');
$pwd = '';
return false;
}
}
}
endif; '
Any help would be appreciated. I'm getting close to 24 hours that site has been down. Hope to get it fixed tonight.