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/nav-menu.php

    r44686 r45583  
    412412    );
    413413
    414     $most_recent_url = $view_all_url = $search_url = '';
     414    $most_recent_url = '';
     415    $view_all_url    = '';
     416    $search_url      = '';
    415417    if ( $nav_menu_selected_id ) {
    416418        $most_recent_url = esc_url( add_query_arg( $post_type_name . '-tab', 'most-recent', remove_query_arg( $removed_args ) ) );
     
    741743    );
    742744
    743     $most_used_url = $view_all_url = $search_url = '';
     745    $most_used_url = '';
     746    $view_all_url  = '';
     747    $search_url    = '';
    744748    if ( $nav_menu_selected_id ) {
    745749        $most_used_url = esc_url( add_query_arg( $taxonomy_name . '-tab', 'most-used', remove_query_arg( $removed_args ) ) );
     
    10281032        }
    10291033
    1030         $some_pending_menu_items = $some_invalid_menu_items = false;
     1034        $some_pending_menu_items = false;
     1035        $some_invalid_menu_items = false;
    10311036        foreach ( (array) $menu_items as $menu_item ) {
    10321037            if ( isset( $menu_item->post_status ) && 'draft' == $menu_item->post_status ) {
     
    11821187        }
    11831188    } else {
    1184         if ( false !== ( $key = array_search( $nav_menu_selected_id, $nav_menu_option['auto_add'] ) ) ) {
     1189        $key = array_search( $nav_menu_selected_id, $nav_menu_option['auto_add'] );
     1190        if ( false !== $key ) {
    11851191            unset( $nav_menu_option['auto_add'][ $key ] );
    11861192        }
Note: See TracChangeset for help on using the changeset viewer.