Don't show email errors for people who don't have it.

git-svn-id: https://develop.svn.wordpress.org/trunk@2256 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-02-11 01:31:23 +00:00
parent a29e5dbc3c
commit 9b55bd6c62
2 changed files with 6 additions and 5 deletions

View File

@@ -1574,9 +1574,9 @@ function wp_mail($to, $subject, $message, $headers = '', $more = '') {
}
if ( function_exists('mb_send_mail') )
return mb_send_mail($to, $subject, $message, $headers, $more);
return @mb_send_mail($to, $subject, $message, $headers, $more);
else
return mail($to, $subject, $message, $headers, $more);
return @mail($to, $subject, $message, $headers, $more);
}
if ( !function_exists('wp_login') ) :