WordPress.org

Make WordPress Core

Changeset 39562


Ignore:
Timestamp:
12/10/16 23:46:33 (5 months ago)
Author:
westonruter
Message:

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

Fixes #39102.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-preview-nav-menus.js

    r39510 r39562  
    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.