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

    r45140 r45583  
    255255                    $multi_number                                    = (int) $_GET['num'];
    256256                    $control['params'][0]['number']                  = -1;
    257                     $widget_id                                       = $control['id'] = $control['id_base'] . '-' . $multi_number;
     257                    $control['id']                                   = $control['id_base'] . '-' . $multi_number;
     258                    $widget_id                                       = $control['id'];
    258259                    $wp_registered_widget_controls[ $control['id'] ] = $control;
    259260                    break;
     
    499500<?php
    500501
    501 $i                    = $split = 0;
     502$i                    = 0;
     503$split                = 0;
    502504$single_sidebar_class = '';
    503505$sidebars_count       = count( $theme_sidebars );
Note: See TracChangeset for help on using the changeset viewer.