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
..
2015-06-21 22:01:28 +00:00
2013-11-19 11:10:09 +00:00
2013-11-15 05:16:09 +00:00
2015-06-30 03:58:27 +00:00
2015-06-30 03:58:27 +00:00
2015-06-28 14:51:30 +00:00
2013-12-05 22:01:10 +00:00
2015-06-27 15:41:25 +00:00
2015-06-28 14:51:30 +00:00
2015-06-19 10:35:26 +00:00
2015-06-01 17:38:29 +00:00
2015-06-01 17:38:29 +00:00