Administration: Revert the change to `click` event handler for fly-out submenus.

The `click()` method there is not the jQuery method, but is an HTML DOM method instead.

This makes the fly-out submenu header clickable again when the menu is folded.

Follow-up to [50420].

Props peterwilsoncc, SergeyBiryukov.
Merges [50429] to the 5.7 branch.
Fixes #52638. See #51812.

Built from https://develop.svn.wordpress.org/branches/5.7@50437


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2021-02-25 22:52:04 +00:00
parent 6d6beaec8c
commit a531b8f403
3 changed files with 3 additions and 3 deletions

View File

@ -840,7 +840,7 @@ $document.ready( function() {
* @return {void}
*/
$adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
$(e.target).parent().siblings('a').get(0).trigger( 'click' );
$(e.target).parent().siblings('a').get(0).click();
});
/**

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-RC1-50431';
$wp_version = '5.7-RC1-50437';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.