Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (5 years ago)
Author:
pento
Message:

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

See #47632.

File:
1 edited

Legend:

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

    r45580 r45590  
    110110    $PHP_SELF = $_SERVER['PHP_SELF'];
    111111    if ( empty( $PHP_SELF ) ) {
    112         $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace( '/(\?.*)?$/', '', $_SERVER['REQUEST_URI'] );
     112        $_SERVER['PHP_SELF'] = preg_replace( '/(\?.*)?$/', '', $_SERVER['REQUEST_URI'] );
     113        $PHP_SELF            = $_SERVER['PHP_SELF'];
    113114    }
    114115}
     
    635636        return $mu_plugins;
    636637    }
    637     if ( ! $dh = opendir( WPMU_PLUGIN_DIR ) ) {
     638    $dh = opendir( WPMU_PLUGIN_DIR );
     639    if ( ! $dh ) {
    638640        return $mu_plugins;
    639641    }
     
    11651167    require_once ABSPATH . WPINC . '/plugin.php';
    11661168
    1167     $locales = $locations = array();
     1169    $locales   = array();
     1170    $locations = array();
    11681171
    11691172    while ( true ) {
Note: See TracChangeset for help on using the changeset viewer.