WordPress/wp-admin/js
Weston Ruter 912b434198 Customizer: Fix saving menus with empty names or names that are already used.
Adds validation for initially-supplied nav menu name, blocking empty names from being supplied. If later an empty name is supplied and the nav menu is saved, the name "(unnamed)" will be supplied instead and supplied back to the client. If a name is supplied for the menu which is currently used by another menu, then the name conflict is resolved by adding a numerical counter similar to how `post_name` conflicts are resolved. Includes unit tests.

Fixes #32760.


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


git-svn-id: http://core.svn.wordpress.org/trunk@33042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-03 20:47:25 +00:00
..
accordion.js Improve/introduce Customizer JavaScript models for Controls, Sections, and Panels. 2014-10-29 22:51:22 +00:00
accordion.min.js Improve/introduce Customizer JavaScript models for Controls, Sections, and Panels. 2014-10-29 22:51:22 +00:00
bookmarklet.js Press This: Check the embeds list against all of the oembed providers. 2015-06-18 00:12:26 +00:00
bookmarklet.min.js Press This: Check the embeds list against all of the oembed providers. 2015-06-18 00:12:26 +00:00
color-picker.js Color Picker: Allow to override mode and width values for Iris via wpColorPicker options. 2014-11-13 12:34:23 +00:00
color-picker.min.js Color Picker: Allow to override mode and width values for Iris via wpColorPicker options. 2014-11-13 12:34:23 +00:00
comment.js Avoid JSHint errors in admin comment.js. Declare globals, use single quotes. 2013-11-09 21:30:10 +00:00
comment.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
common.js Toolbar: Allow submenus to be closed with a second tap on touch devices. 2015-07-03 03:29:25 +00:00
common.min.js Toolbar: Allow submenus to be closed with a second tap on touch devices. 2015-07-03 03:29:25 +00:00
custom-background.js Fix JSHint errors in custom-header.js and custom-background.js. 2013-11-14 05:40:11 +00:00
custom-background.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
custom-header.js Fix JSHint errors in custom-header.js and custom-background.js. 2013-11-14 05:40:11 +00:00
customize-controls.js Customizer: Accessibility enhancements. 2015-07-03 20:19:25 +00:00
customize-controls.min.js Customizer: Accessibility enhancements. 2015-07-03 20:19:25 +00:00
customize-nav-menus.js Customizer: Fix saving menus with empty names or names that are already used. 2015-07-03 20:47:25 +00:00
customize-nav-menus.min.js Customizer: Fix saving menus with empty names or names that are already used. 2015-07-03 20:47:25 +00:00
customize-widgets.js Switch to pointer tolerance for improved drag and drop behaviour when reordering widgets. 2015-06-03 22:59:25 +00:00
customize-widgets.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
dashboard.js Fix dragging to the bottom of the screen on the Dashboard. 2015-05-14 23:50:28 +00:00
dashboard.min.js Fix dragging to the bottom of the screen on the Dashboard. 2015-05-14 23:50:28 +00:00
edit-comments.js Check that current changes can be lost before editing another comment. 2015-06-19 13:48:25 +00:00
edit-comments.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
editor-expand.js Emoji: rename the exclude class to wp-exclude-emoji. 2015-05-04 00:05:28 +00:00
editor-expand.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
editor.js Update the TinyMCE initialization: 2015-06-21 22:01:28 +00:00
editor.min.js Update the TinyMCE initialization: 2015-06-21 22:01:28 +00:00
farbtastic.js
gallery.js Fix JSHint errors in gallery.js. 2013-11-19 11:10:09 +00:00
gallery.min.js Update the versions of several devDependencies in package.json. grunt-cssjanus has been updated to 0.2.2, we no longer need the fork. Run npm install to receive updates for node_modules in the project root. 2014-01-29 04:43:30 +00:00
image-edit.js Spinners: Toggle a class instead of show/hide. 2015-04-03 04:52:27 +00:00
image-edit.min.js Spinners: Toggle a class instead of show/hide. 2015-04-03 04:52:27 +00:00
inline-edit-post.js List tables: A better responsive view. 2015-07-01 01:31:25 +00:00
inline-edit-post.min.js List tables: A better responsive view. 2015-07-01 01:31:25 +00:00
inline-edit-tax.js Bulk/quick edit: Set the correct colspan. 2015-07-01 01:06:25 +00:00
inline-edit-tax.min.js Bulk/quick edit: Set the correct colspan. 2015-07-01 01:06:25 +00:00
iris.min.js Update the Iris color picker to version 1.0.7. 2014-11-30 11:44:22 +00:00
language-chooser.js Language chooser imporvements. 2014-08-04 20:47:16 +00:00
language-chooser.min.js Language chooser imporvements. 2014-08-04 20:47:16 +00:00
link.js Fix JSHint errors in 5 files. 2013-11-15 05:16:09 +00:00
link.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
media-gallery.js Fix JSHint errors in three files. 2013-11-15 23:19:09 +00:00
media-gallery.min.js Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out. 2013-11-13 21:45:11 +00:00
media-upload.js The "old iframe media modal" has some pretty busted styles. Although this is a "deprecated" feature, clean up some of the broken styles. 2014-06-25 17:39:15 +00:00
media-upload.min.js The "old iframe media modal" has some pretty busted styles. Although this is a "deprecated" feature, clean up some of the broken styles. 2014-06-25 17:39:15 +00:00
media.js Spinners: Toggle a class instead of show/hide. 2015-04-03 04:52:27 +00:00
media.min.js Spinners: Toggle a class instead of show/hide. 2015-04-03 04:52:27 +00:00
nav-menu.js Customizer: Make reordering menu items via drag and drop easier. 2015-07-01 16:44:24 +00:00
nav-menu.min.js Customizer: Make reordering menu items via drag and drop easier. 2015-07-01 16:44:24 +00:00
password-strength-meter.js Fix JSHint errors in 3 files. 2013-11-15 05:12:09 +00:00
password-strength-meter.min.js Fix JSHint errors in 3 files. 2013-11-15 05:12:09 +00:00
plugin-install.js Update more instances of default admin blues and grays. 2015-04-05 21:20:27 +00:00
plugin-install.min.js Update more instances of default admin blues and grays. 2015-04-05 21:20:27 +00:00
post.js Check if commentReply exists before trying to work with it. 2015-07-03 15:32:25 +00:00
post.min.js Check if commentReply exists before trying to work with it. 2015-07-03 15:32:25 +00:00
postbox.js Editor scrolling: set max-width: 100% for the text editor clone instead of always resizing it. See #29246. 2014-08-18 01:13:16 +00:00
postbox.min.js Editor scrolling: set max-width: 100% for the text editor clone instead of always resizing it. See #29246. 2014-08-18 01:13:16 +00:00
press-this.js Press This: 2015-06-30 03:58:27 +00:00
press-this.min.js Press This: 2015-06-30 03:58:27 +00:00
revisions.js Revisions: Fix initial state of compareTwoMode. 2014-12-12 09:54:25 +00:00
revisions.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
set-post-thumbnail.js Revert a part of [32673] that caused a fatal error with SCRIPT_DEBUG disabled. 2015-06-01 04:14:25 +00:00
set-post-thumbnail.min.js Revert a part of [32673] that caused a fatal error with SCRIPT_DEBUG disabled. 2015-06-01 04:14:25 +00:00
site-icon-crop.js Site Icon: Improve responsiveness for small screen devices. 2015-07-02 21:16:24 +00:00
site-icon-crop.min.js Site Icon: Improve responsiveness for small screen devices. 2015-07-02 21:16:24 +00:00
site-icon.js Introducing Site Icon, favicon management for WordPress. 2015-06-29 12:58:25 +00:00
site-icon.min.js Introducing Site Icon, favicon management for WordPress. 2015-06-29 12:58:25 +00:00
svg-painter.js Final SVG painter fixes. 2013-12-05 22:01:10 +00:00
svg-painter.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
tags-box.js When saving post, ensure that non-hierarchical taxonomy input is defined before attempting to parse it. 2015-03-26 01:23:28 +00:00
tags-box.min.js When saving post, ensure that non-hierarchical taxonomy input is defined before attempting to parse it. 2015-03-26 01:23:28 +00:00
tags.js Emoji: Instead of having custom hooks for Ajax callbacks, use MutationObserver to re-parse any changed elements in the DOM. 2015-03-12 12:52:26 +00:00
tags.min.js Emoji: Instead of having custom hooks for Ajax callbacks, use MutationObserver to re-parse any changed elements in the DOM. 2015-03-12 12:52:26 +00:00
theme.js Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
theme.min.js Update Grunt dev-dependencies 2015-06-28 14:51:30 +00:00
updates.js Updates: When an update fails (and it's not during the credential form) allow further updates to continue, with the assumption that the error only affects a single plugin. 2015-06-15 04:28:25 +00:00
updates.min.js Updates: When an update fails (and it's not during the credential form) allow further updates to continue, with the assumption that the error only affects a single plugin. 2015-06-15 04:28:25 +00:00
user-profile.js Slow down on calling zxcvbn if it isn't loaded. 2015-07-01 18:13:24 +00:00
user-profile.min.js Slow down on calling zxcvbn if it isn't loaded. 2015-07-01 18:13:24 +00:00
user-suggest.js Autocomplete for the new site admin email. Better than trying to remember which email address you used. 2014-01-27 23:10:12 +00:00
user-suggest.min.js Autocomplete for the new site admin email. Better than trying to remember which email address you used. 2014-01-27 23:10:12 +00:00
widgets.js Open closed widget areas when dragging onto them. 2015-07-01 00:58:24 +00:00
widgets.min.js Open closed widget areas when dragging onto them. 2015-07-01 00:58:24 +00:00
word-count.js Editor: restructure word count 2015-06-19 10:35:26 +00:00
word-count.min.js Editor: restructure word count 2015-06-19 10:35:26 +00:00
wp-fullscreen-stub.js Editor: 2015-06-01 17:38:29 +00:00
wp-fullscreen-stub.min.js Editor: 2015-06-01 17:38:29 +00:00
xfn.js JSHint and coding style fixes for xfn.js. 2013-11-14 21:58:10 +00:00
xfn.min.js JSHint and coding style fixes for xfn.js. 2013-11-14 21:58:10 +00:00