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

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

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

    Regards,
    Inti

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.