[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
Fri Jul 3 20:46:49 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:  closed
 Priority:  normal            |   Milestone:  4.3
Component:  Customize         |     Version:  trunk
 Severity:  major             |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33071"]:
 {{{
 #!CommitTicketReference repository="" revision="33071"
 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.
 }}}

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


More information about the wp-trac mailing list