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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 31 23:56:01 UTC 2011


#11495: Automatic upgrade does not use custom directory structure
-----------------------------+------------------
 Reporter:  sirzooro         |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  3.2
Component:  Upgrade/Install  |     Version:  2.9
 Severity:  normal           |  Resolution:
 Keywords:  needs-testing    |
-----------------------------+------------------

Comment (by dd32):

 I noticed that last night unfortunately.

 The alternative is to switch ->wp_lang_dir() to
 ->find_folder(WP_LANG_DIR); since it's just a wrapper.

 The function will be useful for the language packs which is why I added it
 instead of just calling directly.

 The other issue is that on <3.1 WP_LANG_DIR will be defined as wp-
 includes/languages unless wp-content/languages exists, which will cause
 problems for that code for upgrades to a zip which includes language
 files, yet wp-content/languages doesnt exist on the system - a very edge
 case

 Whilst we're at it, might as well add a FTP_LANG_DIR override constant
 like the rest. (To skip path searching)

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


More information about the wp-trac mailing list