Last active
April 12, 2017 04:53
-
-
Save cantremember/8279193 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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