WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 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:

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 (1)

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

Download all attachments as: .zip

Change History (4)

hansengel6 years ago

plugin_basename() now uses the PLUGINDIR constant

comment:1 hansengel6 years ago

  • Status changed from new to assigned

comment:2 ryan6 years ago

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

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

comment:3 darkdragon6 years ago

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