diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-05 17:45:26 +0000 |
| commit | 767c3538b9f4aa2684429a7efea8f7728034c754 (patch) | |
| tree | 8cc7b4bc82bfc8e5cc2179b7a8aa7b4f9a2be193 /wp-includes/pluggable.php | |
| parent | 23c0a299ada091cdeece968ad5cd3bdd20f5ef3c (diff) | |
| download | wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.gz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.xz wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.zip | |
WP Merge to rev 4347
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@789 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/pluggable.php')
| -rw-r--r-- | wp-includes/pluggable.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 71e28fa..afd5c59 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -184,7 +184,7 @@ function wp_login($username, $password, $already_md5 = false) { return false; if ( '' == $password ) { - $error = __('<strong>Error</strong>: The password field is empty.'); + $error = __('<strong>ERROR</strong>: The password field is empty.'); return false; } @@ -192,7 +192,7 @@ function wp_login($username, $password, $already_md5 = false) { //$login = $wpdb->get_row("SELECT ID, user_login, user_pass FROM $wpdb->users WHERE user_login = '$username'"); if (!$login) { - $error = __('<strong>Error</strong>: Wrong username.'); + $error = __('<strong>ERROR</strong>: Invalid username.'); return false; } else { // If the password is already_md5, it has been double hashed. @@ -200,7 +200,7 @@ function wp_login($username, $password, $already_md5 = false) { if ( ($already_md5 && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) { return true; } else { - $error = __('<strong>Error</strong>: Incorrect password.'); + $error = __('<strong>ERROR</strong>: Incorrect password.'); $pwd = ''; return false; } @@ -343,7 +343,7 @@ function wp_notify_postauthor($comment_id, $comment_type='') { if ('' == $user->user_email) return false; // If there's no email to send the comment to - $comment_author_domain = gethostbyaddr($comment->comment_author_IP); + $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); $blogname = get_option('blogname'); @@ -421,7 +421,7 @@ function wp_notify_moderator($comment_id) { $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1"); $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1"); - $comment_author_domain = gethostbyaddr($comment->comment_author_IP); + $comment_author_domain = @gethostbyaddr($comment->comment_author_IP); $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'"); $notify_message = sprintf( __('A new comment on the post #%1$s "%2$s" is waiting for your approval'), $post->ID, $post->post_title ) . "\r\n"; |
