Skip to content

Instantly share code, notes, and snippets.

@jamesmorrison
Created May 24, 2016 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmorrison/4bb664852b47a461f177d1ba8510f3be to your computer and use it in GitHub Desktop.
Save jamesmorrison/4bb664852b47a461f177d1ba8510f3be to your computer and use it in GitHub Desktop.
Allow self signed SSL on WP (required when doing network upgrade)
<?php
if ( defined( 'LOCAL_DEV' ) && LOCAL_DEV ) {
// Allow Self Signed SSL Certificates
add_filter('https_ssl_verify', '__return_false');
add_filter('https_local_ssl_verify', '__return_false');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment