[wp-trac] [WordPress Trac] #13722: menu_slug part of add_submenu_page ignores space chars

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 14 08:04:33 UTC 2010


#13722: menu_slug part of add_submenu_page ignores space chars
--------------------------+-------------------------------------------------
 Reporter:  utvikl        |        Owner:  westi  
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  Plugins       |      Version:  3.0    
 Severity:  normal        |   Resolution:  wontfix
 Keywords:  close         |  
--------------------------+-------------------------------------------------

Comment(by utvikl):

 It would be interesting to do some grepping in a repository of plugins to
 see how many plugins is affected by this. The problem is that it's a
 regression and that it fails ungratefully and it will cause trouble for
 end users.

 The menu_slug is also not very well defined in the documentation so this
 should be improved.

 Other than that I agree that this should be fixed in the plugin, but I
 would consider grepping some plugin repository or at least give an
 grateful error to the end user. I guess there are even more chars than \s
 that could cause trouble. Chars like %, &, ? and / should not be in the
 menu_slug aswell?

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


More information about the wp-trac mailing list