[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 Jul 1 19:14:25 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):

 There we go. Fixed in [attachment:32760.4.diff]. This now adds an up-front
 check of the trimmed name is an empty string, and if so, it supplies the
 "unnamed" name. The `wp_insert_term()` function returns the
 `empty_term_name` error when the trimmed name is empty, so this prevents
 that from happening.

 If anyone can do a quick validation of this, I'll then commit.

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


More information about the wp-trac mailing list