Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (6 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/theme.php

    r45412 r45583  
    304304    }
    305305
    306     if ( ! $feature_list = get_site_transient( 'wporg_theme_feature_list' ) ) {
     306    $feature_list = get_site_transient( 'wporg_theme_feature_list' );
     307    if ( ! $feature_list ) {
    307308        set_site_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
    308309    }
     
    491492
    492493        $http_url = $url;
    493         if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) {
     494        $ssl      = wp_http_supports( array( 'ssl' ) );
     495        if ( $ssl ) {
    494496            $url = set_url_scheme( $url, 'https' );
    495497        }
Note: See TracChangeset for help on using the changeset viewer.