WordPress.org

Make WordPress Core

Ticket #7245: 7245.diff

File 7245.diff, 676 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-mail.php

     
    1313/** Get the POP3 class with which to access the mailbox. */ 
    1414require_once( ABSPATH . WPINC . '/class-pop3.php' ); 
    1515 
     16/** Keep certain intervals to fetch mail messages. */ 
     17if ( !defined('WP_MAIL_INTERVAL') ) 
     18        define('WP_MAIL_INTERVAL', 300); // 5 minutes 
     19 
     20if ( !WP_MAIL_INTERVAL || ( WP_MAIL_INTERVAL > time() - get_transient('mailserver_last_checked') ) ) 
     21        exit; 
     22set_transient('mailserver_last_checked', $last_checked); 
     23 
    1624$time_difference = get_option('gmt_offset') * 3600; 
    1725 
    1826$phone_delim = '::';