[wp-trac] [WordPress Trac] #13923: menu_page_url returns url with questionmark instead of ampersand

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 16 19:36:56 UTC 2010


#13923: menu_page_url returns url with questionmark instead of ampersand
--------------------------+-------------------------------------------------
 Reporter:  eskapism      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 menu_page_url() returns url with questionmark instead of ampersand, making
 the url invalid, in this case wordpress error is "Invalid post type".

 Example code:

 add_pages_page("test", "test", "edit_pages", "cms-tpv-pages-page",
 "cms_tpv_pages_page" );

 echo menu_page_url("cms-tpv-pages-page");

 output: http://localhost/wordpress3/wp-admin/edit.php?post_type=page?page
 =cms-tpv-pages-page

 excpected output:
 http://localhost/wordpress3/wp-admin/edit.php?post_type=page&page=cms-tpv-
 pages-page


 This seem to happen if menu_slug contains a questionmark, like the one for
 pages ("?post_type=page").

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13923>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list