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

    r42343 r45590  
    9191        if ( is_wp_error( $data ) ) {
    9292            foreach ( (array) $data->get_error_codes() as $code ) {
    93                 $response .= "<wp_error code='$code'><![CDATA[" . $data->get_error_message( $code ) . ']]></wp_error>';
    94                 if ( ! $error_data = $data->get_error_data( $code ) ) {
     93                $response  .= "<wp_error code='$code'><![CDATA[" . $data->get_error_message( $code ) . ']]></wp_error>';
     94                $error_data = $data->get_error_data( $code );
     95                if ( ! $error_data ) {
    9596                    continue;
    9697                }
Note: See TracChangeset for help on using the changeset viewer.