Make WordPress Core

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's profile jminard Owned by: ryan's profile 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)

#1 @jminard
20 years ago

  • Patch set to No

#2 @ryan
20 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
20 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.