Make WordPress Core

Changeset 39572


Ignore:
Timestamp:
12/12/2016 02:03:22 AM (8 years ago)
Author:
dd32
Message:

Customize: Fix ability to shift-click on placeholder/pre-saved nav menu items in preview to focus on corresponding control.

Props westonruter.
Merges [39562] to the 4.7 branch.
Fixes #39102.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/js/customize-preview-nav-menus.js

    r39511 r39572  
    420420            }
    421421
    422             navMenuItemParts = $( this ).attr( 'class' ).match( /(?:^|\s)menu-item-(\d+)(?:\s|$)/ );
     422            navMenuItemParts = $( this ).attr( 'class' ).match( /(?:^|\s)menu-item-(-?\d+)(?:\s|$)/ );
    423423            if ( navMenuItemParts ) {
    424424                e.preventDefault();
Note: See TracChangeset for help on using the changeset viewer.