Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5665 closed defect (bug) (fixed)

plugin_basename() should use PLUGINDIR constant

Reported by: hansengel Owned by: hansengel
Milestone: 2.5 Priority: normal
Severity: minor Version:
Component: General Keywords: has-patch needs-testing
Focuses: Cc:


In wp-includes/plugin.php, the function plugin_basename() does not use the constant PLUGINDIR. Instead, it explicitly declares wp-content/plugins as the plugin directory. This should be changed so when the plugin directory is not at its default location, plugin_basename() will still work.

Attachments (1)

5665.r6612.diff (601 bytes) - added by hansengel 10 years ago.
plugin_basename() now uses the PLUGINDIR constant

Download all attachments as: .zip

Change History (4)

10 years ago

plugin_basename() now uses the PLUGINDIR constant

#1 @hansengel
10 years ago

  • Status changed from new to assigned

#2 @ryan
10 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6629]) Use PLUGINDIR in plugin_basename(). Props hansengel. fixes #5665

#3 @darkdragon
10 years ago

  • Milestone changed from 2.6 to 2.5
Note: See TracTickets for help on using tickets.