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

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 10 20:00:49 UTC 2010


#13722: menu_slug part of add_submenu_page ignores space chars
--------------------------+-------------------------------------------------
 Reporter:  utvikl        |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  General       |     Version:  3.0
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by nacin):

 Changing the space in the menu_slug parameter (the second to last) to %20
 makes this work.

 Yes, we broke it and that code did work in 2.9, but I'm not sure we should
 be inclined to fix it. The plugin author accounted for the need of %20 in
 `define('PC_CMD_BASE',PC_HOME."?page=Plugin%20Commander");` yet failed to
 catch it here, probably because it worked. Spaces in URLs are never a good
 idea.

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


More information about the wp-trac mailing list