Ticket #4039 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 8 months ago

Allow Plugins and themes to come from user definable dirs

Reported by: mdawaffe Assigned to:
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

4039.diff (16.2 kB) - added by mdawaffe on 03/27/07 23:52:21.

Change History

03/27/07 23:52:21 changed by mdawaffe

  • attachment 4039.diff added.

03/28/07 18:24:20 changed by ryan

LANGDIR too

04/10/07 23:31:57 changed by rob1n

  • owner changed from anonymous to rob1n.
  • milestone changed from 2.2 to 2.3.

Once 2.2 is released, I'm on this.

(follow-up: ↓ 4 ) 04/12/07 23:25:26 changed by 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

OR

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

(in reply to: ↑ 3 ) 04/12/07 23:30:35 changed by foolswisdom

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

09/02/07 19:25:08 changed by foolswisdom

  • milestone changed from 2.3 to 2.4 (next).

12/14/07 05:13:45 changed by darkdragon

  • keywords changed from has-patch to has-patch plugin-management.

12/19/07 07:25:38 changed by rob1n

  • owner deleted.

01/16/08 19:12:48 changed by ryan

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

01/17/08 18:51:58 changed by darkdragon

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.

03/02/08 21:00:17 changed by darkdragon

  • 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.

03/31/08 16:31:22 changed by lloydbudd

  • status changed from new to closed.
  • resolution set to wontfix.

Closing as wontfix for now.

03/31/08 20:57:59 changed by Nazgul

  • milestone deleted.