Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r45529 r45583  
    117117 */
    118118function get_core_checksums( $version, $locale ) {
    119     $url = $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' );
    120 
    121     if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) {
     119    $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' );
     120    $url      = $http_url;
     121
     122    $ssl = wp_http_supports( array( 'ssl' ) );
     123    if ( $ssl ) {
    122124        $url = set_url_scheme( $url, 'https' );
    123125    }
Note: See TracChangeset for help on using the changeset viewer.