[wp-trac] [WordPress Trac] #13703: Entering nothing adds a menu with name "Enter menu name here"

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 4 16:01:57 UTC 2010


#13703: Entering nothing adds a menu with name "Enter menu name here"
--------------------------+-------------------------------------------------
 Reporter:  GautamGupta   |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Menus         |     Version:  3.0        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by ocean90):

 ''13703-better-menu-name-check.patch'': I use trim() to remove the
 whitespaces and check then if it's not empty, if it's empty I use the old
 menu name. No work in progress is lost anymore.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13703#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list