Add an extra FTP_LANG_DIR override constant to short-circuit WP_Filesystem_Base::find_folder(WP_LANG_DIR);. See #11495
git-svn-id: http://svn.automattic.com/wordpress/trunk@17579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e16755db0d
commit
dd3c9a5195
|
@ -148,7 +148,7 @@ class WP_Filesystem_Base {
|
|||
function find_folder($folder) {
|
||||
|
||||
if ( strpos($this->method, 'ftp') !== false ) {
|
||||
$constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR );
|
||||
$constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR, 'FTP_LANG_DIR' => WP_LANG_DIR );
|
||||
foreach ( $constant_overrides as $constant => $dir )
|
||||
if ( defined($constant) && $folder === $dir )
|
||||
return trailingslashit(constant($constant));
|
||||
|
|
Loading…
Reference in New Issue