WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (17 months 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/vars.php

    r42343 r45590  
    5252
    5353// Simple browser detection
    54 $is_lynx = $is_gecko = $is_winIE = $is_macIE = $is_opera = $is_NS4 = $is_safari = $is_chrome = $is_iphone = $is_edge = false;
     54$is_lynx   = false;
     55$is_gecko  = false;
     56$is_winIE  = false;
     57$is_macIE  = false;
     58$is_opera  = false;
     59$is_NS4    = false;
     60$is_safari = false;
     61$is_chrome = false;
     62$is_iphone = false;
     63$is_edge   = false;
    5564
    5665if ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
     
    6978             * @param bool $is_admin Whether to use the Google Chrome Frame. Default is the value of is_admin().
    7079             */
    71             if ( $is_chrome = apply_filters( 'use_google_chrome_frame', $is_admin ) ) {
     80            $is_chrome = apply_filters( 'use_google_chrome_frame', $is_admin );
     81            if ( $is_chrome ) {
    7282                header( 'X-UA-Compatible: chrome=1' );
    7383            }
Note: See TracChangeset for help on using the changeset viewer.