WordPress Not Pinging? – Here’s To How To Fix It!

It’s been a funny old week since I updated to WordPress 2.9, don’t get me wrong the new update is fantastic and some of the new features are extremely useful to use, but, and this is a big but, after installing the update, every time I made a post or used a ping back or trackback my WordPress blog would not ping or send pingbacks to other sites!

But now since making a tiny little tweak to the file “wp-includes/cron.php” I’ve fixed the problem!

If you look at the original code for cron.php you will find the following code:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;
wp_remote_post( $cron_url, array(‘timeout’ => 0.01, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

You will notice that I have made a bit bold! This is what you need to change, change this to 1 so now it should read:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;
wp_remote_post( $cron_url, array(‘timeout’ => 1, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

Now you should find that you pings are now working again, hopefully, I checked mine via the Ping Optimizer plugin and the log on the plugin confirmed a ping status!

Please remember before using this tweak, back up your original “wp-includes/cron.php” file, just in case, you never know đŸ˜‰

If you found this post useful or interesting, please consider giving me a tib.
Tibs are pocket-change for the internetâ„¢.
Karen Woodham
Karen Woodham is the founder and owner of the Blazing Minds, an avid blogger and bona fide journalist. She is also a Cinema Film Reviewer, based at the Scala in Prestatyn, where she reviews the latest movies, she has also had several articles published in various publications. She has recently become an Award Winning Blogger and is listed in the UKs Top 10 Film Blogs.
Karen Woodham

@BlazingMinds

Award Winning Entertainment Website, with film & theatre reviews, event coverage & exclusives, listed as one of the 10 Best UK Blogs. Founder @KWoodhamBlogger
Karen Woodham
Karen Woodham