• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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

  • Free Local Speed Plugin Speeds Up Your Local WordPress Installation So It Loads Much Faster

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags