WordPress/wp-admin
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
..
css Customizer: Fix saving menus with empty names or names that are already used. 2015-07-03 20:47:25 +00:00
images Squish that .png a bit more. See [32994]. 2015-06-30 22:04:25 +00:00
includes Press This: Rewrite `WP_Press_This::fetch_source_html()` to utilise the HTTP API better without the need for a local temporary file. 2015-07-03 12:01:25 +00:00
js Customizer: Fix saving menus with empty names or names that are already used. 2015-07-03 20:47:25 +00:00
maint Improve the tone of key/salts recommendation message. 2015-07-01 15:39:26 +00:00
network Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
user Ensure the requires for the admin bootstrap are documented in all wp-admin/user/ files. 2014-11-04 16:32:22 +00:00
about.php Remove accidental change to embed 2015-07-03 14:30:25 +00:00
admin-ajax.php Editor: 2015-06-01 17:38:29 +00:00
admin-footer.php Add `@global` annotations for `wp-admin/*`. 2015-05-28 21:41:30 +00:00
admin-functions.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
admin-header.php Correct the title used on the user dashboard. 2015-06-24 00:37:28 +00:00
admin-post.php Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/*. 2014-11-30 11:42:24 +00:00
admin.php Add `@global` annotations for `wp-admin/*`. 2015-05-28 21:41:30 +00:00
async-upload.php Prevent IE9 and lower displaying the download file dialogue when attempting to upload using the `html4` Plupload handler. 2015-02-12 01:15:29 +00:00
comment.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
credits.php Add additional escaping to credits page. 2015-07-01 17:22:24 +00:00
custom-background.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
custom-header.php Provide alt text for uploaded header images. 2015-06-29 21:32:26 +00:00
customize.php Add JS templates for Customizer Panels and Sections. 2015-05-30 00:03:30 +00:00
edit-comments.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
edit-form-advanced.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
edit-form-comment.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
edit-link-form.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
edit-tag-form.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
edit-tags.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
edit.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
export.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
freedoms.php About page updates. 2015-04-15 00:38:27 +00:00
import.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
index.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
install-helper.php Add missing doc blocks to `wp-admin/includes/*`. 2015-05-29 20:17:26 +00:00
install.php Remove Truthy check from DO_NOT_UPGRADE_GLOBAL_TABLES 2015-06-09 22:00:28 +00:00
link-add.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
link-manager.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
link-parse-opml.php Add `@global` annotations for `wp-admin/*`. 2015-05-28 21:41:30 +00:00
link.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:14:16 +00:00
load-scripts.php When outputting JS with a `Content-Type` header: 2015-01-03 02:57:21 +00:00
load-styles.php Add missing doc blocks to `wp-admin/includes/*`. 2015-05-29 20:17:26 +00:00
media-new.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
media-upload.php Remove an extra indent from most of media-new.php. 2015-02-03 07:47:22 +00:00
media.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
menu-header.php Admin menu: improve accessibility when collapsed. 2015-06-25 19:33:26 +00:00
menu.php Add missing doc blocks to `wp-admin/includes/*`. 2015-05-29 20:17:26 +00:00
moderation.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
ms-admin.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
ms-delete-site.php Trim trailing space from string in site delete confirmation 2015-07-01 16:31:25 +00:00
ms-edit.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
ms-options.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
ms-sites.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
ms-themes.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
ms-upgrade-network.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
ms-users.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
my-sites.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
nav-menus.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
network.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
options-discussion.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
options-general.php Introducing Site Icon, favicon management for WordPress. 2015-06-29 12:58:25 +00:00
options-head.php Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes(). 2013-03-01 17:14:09 +00:00
options-media.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
options-permalink.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
options-reading.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
options-writing.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
options.php Site icon: Remove option name from `$whitelist_options` for the general options screen. 2015-07-01 21:41:26 +00:00
plugin-editor.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
plugin-install.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
plugins.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
post-new.php Add `@global` annotations for `wp-admin/*`. 2015-05-28 21:41:30 +00:00
post.php Use `get_default_comment_status()` globally. 2015-07-02 22:32:25 +00:00
press-this.php Add `@global` annotations for `wp-admin/*`. 2015-05-28 21:41:30 +00:00
profile.php Don't rely on include_path to include files. 2013-09-25 00:18:11 +00:00
revision.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
setup-config.php Add missing doc blocks to `wp-admin/includes/*`. 2015-05-29 20:17:26 +00:00
theme-editor.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
theme-install.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
themes.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
tools.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
update-core.php Proper heading for admin screens. 2015-06-27 15:41:25 +00:00
update.php Accessibility improvements for Themes screen: fix keyboard events and callbacks for the Search field, increase trigger timeout a bit, improve Esc. key handling. 2015-04-03 02:32:28 +00:00
upgrade-functions.php First there were two, and now there are three -- in the @since versions that came before and that shall be. And so it will be, says nacin. 2013-12-24 18:57:12 +00:00
upgrade.php Add `@global` annotations for `wp-admin/*`. 2015-05-28 21:41:30 +00:00
upload.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
user-edit.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
user-new.php Slow down on calling zxcvbn if it isn't loaded. 2015-07-01 18:13:24 +00:00
users.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00
widgets.php Use a less element-specific class name for links within page titles. 2015-07-03 16:42:24 +00:00