WordPress.org

Make WordPress Core

Changeset 39585


Ignore:
Timestamp:
12/12/16 08:25:45 (4 months ago)
Author:
dd32
Message:

Customize: Prevent navigation in preview when clicking on child elements of preview links that have non-previewable URLs.

Props westonruter.
Merges [39584] to the 4.7 branch.
Fixes #39098.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

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

    r39574 r39585  
    139139        handleLinkClick: function( event ) { 
    140140            var preview = this, link, isInternalJumpLink; 
    141             link = $( event.target ); 
     141            link = $( event.target ).closest( 'a' ); 
    142142 
    143143            // No-op if the anchor is not a link. 
Note: See TracChangeset for help on using the changeset viewer.