Opened 20 years ago
Closed 20 years ago
#1196 closed defect (bug) (fixed)
__FILE__ inclusion in add_submenu_page fails on Windows
Reported by: | jminard | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.5 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
When a plugin uses FILE to reference itself in the add_options_page() function, it will fail on a windows installation.
The url ends up looking something like:
http://hq.servequake.com/wp15/wp-admin/C:%5Cxampp%5Chtdocs%5Cwp15%5Cwp-content%5Cplugins%5Cfeedwordpress.phps
Change History (3)
Note: See
TracTickets for help on using
tickets.
Already fixed in 1.5.1.
http://trac.wordpress.org/changeset/2381 []
See the changes to plugin_basename(). It assumed unix style slashes, neglecting windows backslashes.