[wp-trac] [WordPress Trac] #34924: Network upgrade fails on tls 1.2 only servers

WordPress Trac noreply at wordpress.org
Fri Mar 25 14:26:38 UTC 2016


#34924: Network upgrade fails on tls 1.2 only servers
--------------------------------+------------------------------
 Reporter:  mensmaximus         |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  HTTP API            |     Version:  2.7
 Severity:  normal              |  Resolution:
 Keywords:  https dev-feedback  |     Focuses:  multisite
--------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:  https => https dev-feedback


Comment:

 Thinking out loud: If libcurl < 7.34 cannot correctly negotiate a TLS1.2
 connection, how about we conditionally set the default transport order
 based on that?

 In `WP_Http::_get_first_available_transport()`:

 {{{
 $curl = curl_version();
 if ( 'https' === parse_url( $url, PHP_URL_SCHEME ) && version_compare(
 $curl['version'], '7.34', '<' ) ) {
     $transports = array( 'streams', 'curl' );
 } else {
     $transports = array( 'curl', 'streams' );
 }
 }}}

 What other compatibility issues is this likely to cause?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34924#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list