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/translation-install.php

    r45412 r45583  
    3636
    3737    if ( false === $res ) {
    38         $url = $http_url = 'http://api.wordpress.org/translations/' . $type . '/1.0/';
    39         if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) {
     38        $url      = 'http://api.wordpress.org/translations/' . $type . '/1.0/';
     39        $http_url = $url;
     40        $ssl      = wp_http_supports( array( 'ssl' ) );
     41        if ( $ssl ) {
    4042            $url = set_url_scheme( $url, 'https' );
    4143        }
     
    118120 */
    119121function wp_get_available_translations() {
    120     if ( ! wp_installing() && false !== ( $translations = get_site_transient( 'available_translations' ) ) ) {
    121         return $translations;
     122    if ( ! wp_installing() ) {
     123        $translations = get_site_transient( 'available_translations' );
     124        if ( false !== $translations ) {
     125            return $translations;
     126        }
    122127    }
    123128
Note: See TracChangeset for help on using the changeset viewer.