[wp-trac] [WordPress Trac] #11495: Automatic upgrade does not use custom directory structure

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 21:40:05 UTC 2010


#11495: Automatic upgrade does not use custom directory structure
-----------------------------+----------------------------------------------
 Reporter:  sirzooro         |       Owner:             
     Type:  defect (bug)     |      Status:  new        
 Priority:  normal           |   Milestone:  3.0        
Component:  Upgrade/Install  |     Version:  2.9        
 Severity:  normal           |    Keywords:  needs-patch
-----------------------------+----------------------------------------------

Comment(by dd32):

 > sounds complicated to me. why not let core upgrade use the correct
 location firsthand?

 Because that IS The correct location.

 The WordPress package has to be unpacked to ABSPATH.

 However, The package contains files whose path is set to wp-content/

 In the event that the content directory is moved, One of 2 things are
 needed:

  1. Less Complicated: Copy the files to the new location afterwards
  2. More Complicated: Intrduce some Directory rewriting in the copying
 process to redirect wp-content/ to WP_CONTENT_DIR and wp-content/plugins
 to WP_PLUGIN_DIR, etc

 The core upgrade IS using the correct location, Its just that the paths
 may vary within, and as such, more complicated approaches are needed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11495#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list