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.
Fixes #52638. See #51812.
Built from https://develop.svn.wordpress.org/trunk@50429


git-svn-id: http://core.svn.wordpress.org/trunk@50040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-02-24 12:22:07 +00:00
parent 5ba4f4cee5
commit ed5c0971f5
3 changed files with 3 additions and 3 deletions

View File

@ -840,7 +840,7 @@ $document.ready( function() {
* @return {void} * @return {void}
*/ */
$adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){ $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 * @global string $wp_version
*/ */
$wp_version = '5.8-alpha-50428'; $wp_version = '5.8-alpha-50429';
/** /**
* 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.