WordPress.org

Make WordPress Core


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

    r45416 r45583  
    8383 */
    8484function get_clean_basedomain() {
    85     if ( $existing_domain = network_domain_check() ) {
     85    $existing_domain = network_domain_check();
     86    if ( $existing_domain ) {
    8687        return $existing_domain;
    8788    }
    8889    $domain = preg_replace( '|https?://|', '', get_option( 'siteurl' ) );
    89     if ( $slash = strpos( $domain, '/' ) ) {
     90    $slash  = strpos( $domain, '/' );
     91    if ( $slash ) {
    9092        $domain = substr( $domain, 0, $slash );
    9193    }
     
    186188    } else {
    187189        $subdomain_install = false;
    188         if ( $got_mod_rewrite = got_mod_rewrite() ) { // dangerous assumptions
     190        $got_mod_rewrite   = got_mod_rewrite();
     191        if ( $got_mod_rewrite ) { // dangerous assumptions
    189192            echo '<div class="updated inline"><p><strong>' . __( 'Note:' ) . '</strong> ';
    190193            /* translators: %s: mod_rewrite */
Note: See TracChangeset for help on using the changeset viewer.