Ticket #5665 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

plugin_basename() should use PLUGINDIR constant

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

Description

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

5665.r6612.diff (0.6 kB) - added by hansengel on 01/14/08 13:58:46.
plugin_basename() now uses the PLUGINDIR constant

Change History

01/14/08 13:58:46 changed by hansengel

  • attachment 5665.r6612.diff added.

plugin_basename() now uses the PLUGINDIR constant

01/14/08 14:14:45 changed by hansengel

  • status changed from new to assigned.

01/16/08 19:11:15 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

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

01/20/08 21:14:27 changed by darkdragon

  • milestone changed from 2.6 to 2.5.