Skip to content

Instantly share code, notes, and snippets.

@cantremember
Last active April 12, 2017 04:53
Show Gist options
  • Save cantremember/8279193 to your computer and use it in GitHub Desktop.
Save cantremember/8279193 to your computer and use it in GitHub Desktop.
--- a/wordpress/wp-includes/class-http.php
+++ b/wordpress/wp-includes/class-http.php
@@ -1160,6 +1160,12 @@ class WP_Http_Curl {
curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify ===
curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, $ssl_verify );
+
+ // GitHub fail
+ // curl -vvv https://api.github.com/gists/2166671
+ // http://blog.cantremember.com/one-line-fix-wordpress-and-git
+ curl_setopt( $handle, CURLOPT_SSL_CIPHER_LIST, 'rsa_aes_128_sha'
+
curl_setopt( $handle, CURLOPT_CAINFO, $r['sslcertificates'] );
curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] );
// The option doesn't work with safe mode or when open_basedir i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment