Ticket #5484: wp-mail.diff
| File wp-mail.diff, 0.9 kB (added by xknown, 7 months ago) |
|---|
-
wp-mail.php
old new 12 12 $pop3 = new POP3(); 13 13 14 14 if (!$pop3->connect(get_option('mailserver_url'), get_option('mailserver_port'))) 15 wp_die( $pop3->ERROR);15 wp_die(wp_specialchars($pop3->ERROR)); 16 16 17 17 if (!$pop3->user(get_option('mailserver_login'))) 18 wp_die( $pop3->ERROR);18 wp_die(wp_specialchars($pop3->ERROR)); 19 19 20 20 $count = $pop3->pass(get_option('mailserver_pass')); 21 21 if (false === $count) 22 wp_die( $pop3->ERROR);22 wp_die(wp_specialchars($pop3->ERROR)); 23 23 if (0 == $count) 24 24 echo "<p>There doesn't seem to be any new mail.</p>\n"; // will fall-through to end of for loop 25 25 … … 171 171 $post_data = add_magic_quotes($post_data); 172 172 173 173 $post_ID = wp_insert_post($post_data); 174 if ( is_wp_error( $post_ID ) ) 174 if ( is_wp_error( $post_ID ) ) 175 175 echo "\n" . $post_ID->get_error_message(); 176 176 177 177 if (!$post_ID) {
