[wp-trac] [WordPress Trac] #4039: Allow Plugins and themes to come from user definable dirs

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 27 23:51:56 GMT 2007


#4039: Allow Plugins and themes to come from user definable dirs
----------------------------+-----------------------------------------------
 Reporter:  mdawaffe        |       Owner:  anonymous
     Type:  enhancement     |      Status:  new      
 Priority:  low             |   Milestone:  2.2      
Component:  Administration  |     Version:  2.1      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 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.
  1. new PLUGINURL and wp_plugin_url( [$file] ).  Constant is false by
 default but can be  set to a full url.
  1. 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?
  1. get_themes() outputs relative paths when THEMEDIR not defined,
 absolute path whet THEMEDIR is defined.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4039>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list