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. Built from https://develop.svn.wordpress.org/branches/4.7@39585 git-svn-id: http://core.svn.wordpress.org/branches/4.7@39525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e28a67c870
commit
ca4d60134b
|
@ -138,7 +138,7 @@
|
|||
*/
|
||||
handleLinkClick: function( event ) {
|
||||
var preview = this, link, isInternalJumpLink;
|
||||
link = $( event.target );
|
||||
link = $( event.target ).closest( 'a' );
|
||||
|
||||
// No-op if the anchor is not a link.
|
||||
if ( _.isUndefined( link.attr( 'href' ) ) ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7.1-alpha-39582';
|
||||
$wp_version = '4.7.1-alpha-39585';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue