plugin_basename() should use PLUGINDIR constant
|Reported by:||hansengel||Owned by:||hansengel|
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.