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 ;)

Karen Woodham

Karen Woodham

Editor-in-Chief at Blazing Minds
Karen Woodham is the founder and owner of the Blazing Minds, an avid blogger and bona fide journalist of all sorts of interesting and odd things. She is also a Cinema Film Reviewer, based in Rhyl, where she reviews the latest movies, she has also had several articles in The Daily Post Newspaper as well as other publications.
Karen Woodham

@BlazingMinds

Bona fide Entertainment Journalist, Writer, Blogger, Photographer, founder of #NorthWales No.1 website http://t.co/jIVHEWTuMR.
@Twitter @Support @Verified I am now a bona fide journalist with Press Card, so how can I ask you to #Verify my account! - 13 mins ago
Karen Woodham
Karen Woodham