Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (5 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/includes/class-wp-terms-list-table.php

    r44804 r45583  
    227227        $number = $args['number'];
    228228
    229         $args['offset'] = $offset = ( $page - 1 ) * $number;
     229        $offset         = ( $page - 1 ) * $number;
     230        $args['offset'] = $offset;
    230231
    231232        // Convert it to table rows.
     
    234235        if ( is_taxonomy_hierarchical( $taxonomy ) && ! isset( $args['orderby'] ) ) {
    235236            // We'll need the full set of terms then.
    236             $args['number'] = $args['offset'] = 0;
     237            $args['number'] = 0;
     238            $args['offset'] = $args['number'];
    237239        }
    238240        $terms = get_terms( $taxonomy, $args );
     
    286288            // If the page starts in a subtree, print the parents.
    287289            if ( $count == $start && $term->parent > 0 && empty( $_REQUEST['s'] ) ) {
    288                 $my_parents = $parent_ids = array();
     290                $my_parents = array();
     291                $parent_ids = array();
    289292                $p          = $term->parent;
    290293                while ( $p ) {
Note: See TracChangeset for help on using the changeset viewer.