[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
Wed Jun 24 06:46:34 UTC 2015


#32760: Customizer Menus: cannot save a menu with the same name as an existing menu
--------------------------+--------------------
 Reporter:  designsimply  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.3
Component:  Customize     |     Version:  trunk
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by westonruter):

 We could handle this via a `validate` method on the `nav_menu` setting,
 whereby if a user tries to update a `nav_menu` setting to have the same
 name as something else, it could automatically get `(2)` appended to the
 name, similarly to how post slugs get made unique.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32760#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list