Allow enter to trigger a new custom link on nav-menus.php. props mattwiebe, fixes #18255.

git-svn-id: https://develop.svn.wordpress.org/trunk@19310 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-11-16 01:45:11 +00:00
parent 193c29c022
commit a82a7458bd
3 changed files with 8 additions and 2 deletions

View File

@@ -388,7 +388,7 @@ function wp_default_scripts( &$scripts ) {
) );
// Navigation Menus
$scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array('jquery-ui-sortable'), '20110524' );
$scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array('jquery-ui-sortable'), '20111115' );
$scripts->localize( 'nav-menu', 'navMenuL10n', array(
'noResultsFound' => _x('No results found.', 'search results'),
'warnDeleteMenu' => __( "You are about to permanently delete this menu. \n 'Cancel' to stop, 'OK' to delete." ),