#13923 closed defect (bug) (fixed)
menu_page_url returns url with questionmark instead of ampersand
Reported by: | eskapism | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Plugins | Keywords: | |
Focuses: | Cc: |
Description
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").
Attachments (2)
Change History (8)
#3
@
14 years ago
- Component changed from General to Plugins
- Milestone changed from Unassigned to 3.0
- Owner changed from westi to nacin
- Status changed from reviewing to accepted
Note: See
TracTickets for help on using
tickets.
Related #13829, Changeset [15203]