WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7704 closed defect (bug) (invalid)

WP_CONTENT_DIR and PLUGINDIR not compatible

Reported by: strider72 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6.1
Component: General Keywords: plugins, needs-patch
Focuses: Cc:

Description

If I set WP_CONTENT_DIR to a custom location, PLUGINDIR is still set to be inside the _default_ location of wp-content.

I discovered this through the wPhone plugin. It doesn't run when I use a custom WP_CONTENT_DIR, because it is looking for itself in PLUGINDIR/wphone/ -- (see wphone.php line 50)

FIX: When WP_CONTENT_DIR is set, PLUGINDIR should default to WP_CONTENT_DIR/plugins

Change History (3)

comment:1 @DD326 years ago

See also: wp-hackers thread and my reply

In short: My response is that it can probably be seen as a wPhone compat issue with a new function, If you define WP_CONTENT_DIR, best bet would be to also define PLUGINDIR to point to the right location RELATIVE to ABSPATH

comment:2 @strider726 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Closing this one. PLUGINDIR was replaced with WP_PLUGIN_DIR, which is an absolute server path, as of WP 2.6.

So... this wasn't a bug so much as an older plugin getting confused by a subsequent change in WP.

comment:3 @thee176 years ago

  • Milestone 2.7 deleted
Note: See TracTickets for help on using tickets.