Make WordPress Core

Opened 21 years ago

Closed 21 years ago

#1196 closed defect (bug) (fixed)

__FILE__ inclusion in add_submenu_page fails on Windows

Reported by: jminard Owned by: ryan
Priority: normal Milestone:
Component: General Version: 1.5
Severity: major Keywords:
Cc: Focuses:

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)

#1 @jminard
21 years ago

  • PatchNo

#2 @ryan
21 years ago

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.

#3 @ryan
21 years ago

  • fixed_in_version1.5.1
  • Owner changed from anonymous to rboren
  • Resolution 1020
  • Status newclosed
Note: See TracTickets for help on using tickets.