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/class-wp-widget.php

    r43571 r45590  
    207207     */
    208208    public function get_field_name( $field_name ) {
    209         if ( false === $pos = strpos( $field_name, '[' ) ) {
     209        $pos = strpos( $field_name, '[' );
     210        if ( false === $pos ) {
    210211            return 'widget-' . $this->id_base . '[' . $this->number . '][' . $field_name . ']';
    211212        } else {
Note: See TracChangeset for help on using the changeset viewer.