Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (7 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/rest-api/endpoints/class-wp-rest-terms-controller.php

    r45267 r45590  
    424424                         * give them the identifier for future use.
    425425                         */
    426                         if ( $term_id = $term->get_error_data( 'term_exists' ) ) {
     426                        $term_id = $term->get_error_data( 'term_exists' );
     427                        if ( $term_id ) {
    427428                                $existing_term = get_term( $term_id, $this->taxonomy );
    428429                                $term->add_data( $existing_term->term_id, 'term_exists' );
Note: See TracChangeset for help on using the changeset viewer.