Make WordPress Core


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (6 years ago)
Author:
pento
Message:

General: Fix some precision alignment formatting warnings.

The WPCS WordPress.WhiteSpace.PrecisionAlignment rule throws warnings for a bunch of code that will likely cause issues for wpcbf. Fixing these manually beforehand gives us better auto-fixed results later.

See #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu.php

    r42026 r42228  
    512512    // Associate the menu item with the menu term
    513513    // Only set the menu term if it isn't set to avoid unnecessary wp_get_object_terms()
    514      if ( $menu_id && ( ! $update || ! is_object_in_term( $menu_item_db_id, 'nav_menu', (int) $menu->term_id ) ) ) {
     514    if ( $menu_id && ( ! $update || ! is_object_in_term( $menu_item_db_id, 'nav_menu', (int) $menu->term_id ) ) ) {
    515515        wp_set_object_terms( $menu_item_db_id, array( $menu->term_id ), 'nav_menu' );
    516516    }
Note: See TracChangeset for help on using the changeset viewer.