[wp-trac] [WordPress Trac] #32760: Customizer Menus: cannot save a menu with the same name as an existing menu
WordPress Trac
noreply at wordpress.org
Tue Jun 30 04:04:18 UTC 2015
#32760: Customizer Menus: cannot save a menu with the same name as an existing menu
-------------------------------------+--------------------------
Reporter: designsimply | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.3
Component: Customize | Version: trunk
Severity: major | Resolution:
Keywords: has-patch needs-testing | Focuses: javascript
-------------------------------------+--------------------------
Comment (by westonruter):
Replying to [comment:15 celloexpressions]:
> Testing the patch, looks like I can create an unnamed menu with just
spaces and successfully add items and set it to a location then save, but
when refreshing the Customizer it's gone.
>
> I think we should just skip the unnamed stuff and reject empty or
spaces-only menus before they're even created, as @tywayne suggested. That
would be the simplest approach and should avoid confusion for the user.
The menu goes away? It should be retained, but just with a conflict-
resolved name and with empty names being replaced with "(unnamed)".
There's also the possibility that a user could clear out the name input
field after they first add the menu, so that needs to be taken into
account as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32760#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list