mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
wp_die() improvements from Sewar. fixes #2902
git-svn-id: https://develop.svn.wordpress.org/trunk@4006 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -11,10 +11,8 @@ $phone_delim = '::';
|
||||
|
||||
$pop3 = new POP3();
|
||||
|
||||
if (!$pop3->connect(get_settings('mailserver_url'), get_settings('mailserver_port'))) :
|
||||
echo "Ooops $pop3->ERROR <br />\n";
|
||||
exit;
|
||||
endif;
|
||||
if (!$pop3->connect(get_settings('mailserver_url'), get_settings('mailserver_port')))
|
||||
wp_die($pop3->ERROR);
|
||||
|
||||
$count = $pop3->login(get_settings('mailserver_login'), get_settings('mailserver_pass'));
|
||||
if (0 == $count) wp_die(__('There doesn’t seem to be any new mail.'));
|
||||
|
||||
Reference in New Issue
Block a user