mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
Customize: Prevent edit shortcut from losing event handler after selective refresh.
Props sirbrillig. Merges [39581] to the 4.7 branch. See #27403. Fixes #39100. Built from https://develop.svn.wordpress.org/branches/4.7@39606 git-svn-id: http://core.svn.wordpress.org/branches/4.7@39546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
41d2ef99a6
commit
db72974122
@ -121,12 +121,12 @@ wp.customize.selectiveRefresh = ( function( $, api ) {
|
||||
return;
|
||||
}
|
||||
$shortcut = partial.createEditShortcut();
|
||||
partial.addEditShortcutToPlacement( placement, $shortcut );
|
||||
$shortcut.on( 'click', function( event ) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
partial.showControl();
|
||||
} );
|
||||
partial.addEditShortcutToPlacement( placement, $shortcut );
|
||||
},
|
||||
|
||||
/**
|
||||
|
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-39605';
|
||||
$wp_version = '4.7.1-alpha-39606';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user