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/themes.php

    r45140 r45583  
    269269            }
    270270
    271             if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) {
     271            $pos = strpos( $menu_file, '?' );
     272            if ( false !== $pos ) {
    272273                $menu_file = substr( $menu_file, 0, $pos );
    273274            }
     
    369370<?php
    370371// List broken themes, if any.
    371 if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes = wp_get_themes( array( 'errors' => true ) ) ) {
     372$broken_themes = wp_get_themes( array( 'errors' => true ) );
     373if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) {
    372374    ?>
    373375
Note: See TracChangeset for help on using the changeset viewer.