Ticket #5420: wp-mail.2.diff
| File wp-mail.2.diff, 796 bytes (added by , 18 years ago) |
|---|
-
wp-mail.php
14 14 if (!$pop3->connect(get_option('mailserver_url'), get_option('mailserver_port'))) 15 15 wp_die($pop3->ERROR); 16 16 17 $count = $pop3->login(get_option('mailserver_login'), get_option('mailserver_pass')); 18 if (0 == $count) wp_die(__('There doesn’t seem to be any new mail.'));17 if (!$pop3->user(get_option('mailserver_login'))) 18 wp_die($pop3->ERROR); 19 19 20 $count = $pop3->pass(get_option('mailserver_pass')); 21 if (false === $count) 22 wp_die($pop3->ERROR); 23 if (0 == $count) 24 echo "<p>There doesn't seem to be any new mail.</p>\n"; // will fall-through to end of for loop 20 25 21 26 for ($i=1; $i <= $count; $i++) : 22 27