Customize: Restrict click target of menu deletion, moving to button from its container.

Props westonruter, afercia.
Fixes #40981.

Built from https://develop.svn.wordpress.org/trunk@41020


git-svn-id: http://core.svn.wordpress.org/trunk@40870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-07-10 18:40:44 +00:00
parent b8e2496645
commit 1af3aa0000
3 changed files with 3 additions and 4 deletions

View File

@ -2229,8 +2229,7 @@
} }
} ); } );
control.container.find( '.menu-delete-item' ).on( 'click', function( event ) { control.container.find( '.menu-delete-item .button-link-delete' ).on( 'click', function( event ) {
event.stopPropagation();
event.preventDefault(); event.preventDefault();
control.setting.set( false ); control.setting.set( false );
}); });

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-alpha-41019'; $wp_version = '4.9-alpha-41020';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.