Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’ve a plugins that use cron to send emails ( post notification ) and it works
    so what doesn’t work is at less for the articles….

    I worked on wp-cron.php :
    At first wp-cron had some delay because i don’t understand why but in the WP folder the
    echo time( ) doesn’t give the same result as elsewhere so I had to correct it line 51
    $local_time = time( ) + ( 2 * 60 * 60 ) + ( 60* 11 ) ;

    But the main (and stupid 😀 ) things I did to get it working is line 56 : a comment is telling you that the code use a global variable but it is not declared before so I had
    global $doing_wp_cron ;

    And it seems to work fine.
    If this could help some one ….

Viewing 1 replies (of 1 total)