Make WordPress Core


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

    r45363 r45590  
    11741174            $allowed_attr[ $match[0] ] = $allowed_attr['data-*'];
    11751175        } else {
    1176             $name = $value = $whole = '';
     1176            $name  = '';
     1177            $value = '';
     1178            $whole = '';
    11771179            return false;
    11781180        }
     
    11831185
    11841186        if ( empty( $new_value ) ) {
    1185             $name = $value = $whole = '';
     1187            $name  = '';
     1188            $value = '';
     1189            $whole = '';
    11861190            return false;
    11871191        }
     
    11951199        foreach ( $allowed_attr[ $name_low ] as $currkey => $currval ) {
    11961200            if ( ! wp_kses_check_attr_val( $value, $vless, $currkey, $currval ) ) {
    1197                 $name = $value = $whole = '';
     1201                $name  = '';
     1202                $value = '';
     1203                $whole = '';
    11981204                return false;
    11991205            }
     
    12361242                if ( preg_match( '/^([-a-zA-Z:]+)/', $attr, $match ) ) {
    12371243                    $attrname = $match[1];
    1238                     $working  = $mode = 1;
     1244                    $working  = 1;
     1245                    $mode     = 1;
    12391246                    $attr     = preg_replace( '/^[-a-zA-Z:]+/', '', $attr );
    12401247                }
Note: See TracChangeset for help on using the changeset viewer.