Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#4039 closed enhancement (wontfix)

Allow Plugins and themes to come from user definable dirs

Reported by: mdawaffe Owned by:
Priority: low Milestone:
Component: Administration Version: 2.1
Severity: normal Keywords: has-patch plugin-management
Cc:

Description

Ultimate goal: allow WP to run from completely clean svn co/export and still have custom plugins/themes/cache/uploads/etc.

Patch:

  1. PLUGINDIR -> wp_plugin_path( [$file] ). Deals with absolute or relative PLUGINDIR definitions.
  2. new PLUGINURL and wp_plugin_url( [$file] ). Constant is false by default but can be set to a full url.
  3. get_theme_root() and get_theme_root_uri() respect new contstants: THEMEDIR, THEMEURL.

Possible hangups:

  1. editing plugin and theme files. Does the recent list always work?
  2. get_themes() outputs relative paths when THEMEDIR not defined, absolute path whet THEMEDIR is defined.

Attachments (1)

4039.diff (16.2 KB) - added by mdawaffe 6 years ago.

Download all attachments as: .zip

Change History (13)

comment:1   ryan6 years ago

LANGDIR too

  • Milestone changed from 2.2 to 2.3
  • Owner changed from anonymous to rob1n

Once 2.2 is released, I'm on this.

comment:3 follow-up: ↓ 4   mdawaffe6 years ago

For 2.3, we should figure out once and for all if we want to allow alternate plugin dir, theme dir, upload dir (already possible with filter), and lang dir

OR

allow for an alternate wp-content dir and get them all with one swoop.

comment:4 in reply to: ↑ 3   foolswisdom6 years ago

Replying to mdawaffe:

For 2.3, we should figure out once and for all if we want to allow alternate plugin dir, theme dir, upload dir (already possible with filter), and lang dir

I hope so, I am one of those wordpress/ directory type and I would like just to have flat directories for plugins, themes, files etc right there

  • Milestone changed from 2.3 to 2.4 (next)
  • Keywords plugin-management added
  • Owner rob1n deleted

comment:8   ryan5 years ago

Resurrecting for 2.5 consideration. All in one swoop or per dir?

Per directory, please.

The reason for this is that it might not make sense to since the CSS in themes have to be public of have some proxy for output (not ideal).

For Plugins, I would want to totally move them out of the public web space to a directory below and map that from multiple WordPress installations, if needed.

  • Milestone changed from 2.5 to 2.6

No traction. Moving to 2.6. I don't know if Ryan is still working on this, so move back if a fix is implemented.

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

Closing as wontfix for now.

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