Is there a known vulnerability for wp-cron.php?

I am using WordPress v.4.1 and all the plugins and the theme are up to date. I see in my log files too many of these… xxx.xxx.xxx.xxx – – [02/Jan/2015:13:30:27 +0200] “POST /wp-cron.php?doing_wp_cron=1420198227.5184459686279296875000 HTTP/1.0” 200 – “-” “WordPress/217; http://www.example.com” where xxx.xxx.xxx.xxx is the IP address of the server that the website is hosted and “http://www.example.com” … Read more

PHP Warning on fresh install (Connection timed out)

I get this PHP Warning when accessing my fresh WordPress 3.4.1 install (Norwegian language). Warning: fopen(URL_TO_MY_WORDPRESS_PAGE/wp-cron.php?doing_wp_cron=1341476616.7605190277099609375000): failed to open stream: Connection timed out in PATH_TO_MY_WP_FILES/wp-includes/class-http.php on line 923 This is of course with the WP_DEBUG flag set to true, as it’s running on a development server. This happens intermittently, so it seems to be a … Read more

How to make sure that only one wp_cron() runs at a time?

I have around 20 wp_cron() functions like the following code. Almost all crons run hourly; a few are daily. if ( ! wp_next_scheduled( ‘my_task_hook’ ) ) { wp_schedule_event( time(), ‘hourly’, ‘my_task_hook’ ); } add_action( ‘my_task_hook’, ‘my_task_function’ ); function my_task_function() { //Complex Code } To increase server performance, and so as not to keep getting server … Read more

WP Cron Doesn’t Execute When Time Elapses

The goal I want to use wp_schedule_single_event( ) to execute a single event that sends me an e-mail 8 minutes after the user submits a form. The issue The following code is in my functions.php: function nkapi_send_to_system( $args ) { wp_mail( ‘xxx’, ‘xxx’, $args ); } add_action( ‘nkapi_send’, ‘nkapi_send_to_system’ ); function schedule_event( $id ) { … Read more