Changeset 11782
- Timestamp:
- 08/06/2009 07:58:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-mail.php
r11380 r11782 14 14 require_once( ABSPATH . WPINC . '/class-pop3.php' ); 15 15 16 /** Only check at this interval for new messages. */ 17 if ( !defined('WP_MAIL_INTERVAL') ) 18 define('WP_MAIL_INTERVAL', 500); // 5 minutes 19 20 $last_checked = get_transient('mailserver_last_checked'); 21 22 if ( $last_checked ) 23 wp_die(__('Slow down cowboy, no need to check for new mails so often!')); 24 25 set_transient('mailserver_last_checked', true, WP_MAIL_INTERVAL); 26 16 27 $time_difference = get_option('gmt_offset') * 3600; 17 28 … … 19 30 20 31 $pop3 = new POP3(); 32 $count = 0; 21 33 22 34 if ( ! $pop3->connect(get_option('mailserver_url'), get_option('mailserver_port') ) ||
Note: See TracChangeset
for help on using the changeset viewer.