Disable Connection To WordPress.org On Local Installation

Speed up your local installation by disabling the connection to wordpress.org’s server.

add_filter( 'pre_http_request', '__return_true', 100 );

Add this PHP code to a must use plugin or your child themes functions file.

Now you’ll stop seeing this error message and others like it which can cause your local installation to take more than 20 – 3 seconds to load pages :

A error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /app/public/wp-includes/update.php on line 347

Related Plugins


Comments

One response to “Disable Connection To WordPress.org On Local Installation”

  1. Tnx! Great, it save a lot of my time!

    Regards,
    Inti

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.