[wp-trac] Re: [WordPress Trac] #6938: Allow wp-content directory to exist in a custom location (not relative to ABSPATH)

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 3 21:05:46 GMT 2008


#6938: Allow wp-content directory to exist in a custom location (not relative to
ABSPATH)
-------------------------+--------------------------------------------------
 Reporter:  sambauers    |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.6      
Component:  General      |      Version:  2.5.1    
 Severity:  normal       |   Resolution:           
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Comment (by lilyfan):

 This enhancement breaks compatibility with plugins that includes wp-
 load.php/wp-config.php.
 Because the relative path to the plugin dir and wp-load.php is not uniqly
 defined.

 AJAX plugins often uses its own API such as http://blog.example.com/wp-
 content/plugins/ajax/api.php,
 and api.php includes wp-load.php/wp-config.php to use WordPress feature
 like:
 `require dirname(dirname(dirname(dirname(__FILE__)))) . '/wp-config.php';`

 If plugin directory changed, api.php cannot find wp-load.php/wp-
 config.php.
 Please provide a way to seek wp-load.php in that case.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6938#comment:24>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list