mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Menus: Fix JS Warning when removing menu items.
Move the `updateParentDropdown` and `updateOrderDropdown` methods to be called on the jQuery menu object instead of on the `menus` translations object. Props joedolson, abcd95, audrasjb. Fixes #63059. Built from https://develop.svn.wordpress.org/trunk@59950 git-svn-id: http://core.svn.wordpress.org/trunk@59292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
429d53f13e
commit
294aaff4e6
@ -1261,8 +1261,8 @@
|
||||
deletionSpeech = menus.itemsDeleted.replace( '%s', itemsPendingDeletion );
|
||||
wp.a11y.speak( deletionSpeech, 'polite' );
|
||||
that.disableBulkSelection();
|
||||
menus.updateParentDropdown();
|
||||
menus.updateOrderDropdown();
|
||||
$( '#menu-to-edit' ).updateParentDropdown();
|
||||
$( '#menu-to-edit' ).updateOrderDropdown();
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -1816,8 +1816,8 @@
|
||||
}
|
||||
api.refreshAdvancedAccessibility();
|
||||
wp.a11y.speak( menus.itemRemoved );
|
||||
menus.updateParentDropdown();
|
||||
menus.updateOrderDropdown();
|
||||
$( '#menu-to-edit' ).updateParentDropdown();
|
||||
$( '#menu-to-edit' ).updateOrderDropdown();
|
||||
});
|
||||
},
|
||||
|
||||
|
2
wp-admin/js/nav-menu.min.js
vendored
2
wp-admin/js/nav-menu.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-beta1-59949';
|
||||
$wp_version = '6.8-beta1-59950';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user