Make WordPress Core


Ignore:
Timestamp:
04/01/2011 09:17:27 AM (14 years ago)
Author:
dd32
Message:

Add an extra FTP_LANG_DIR override constant to short-circuit WP_Filesystem_Base::find_folder(WP_LANG_DIR);. See #11495

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-base.php

    r17576 r17579  
    149149
    150150        if ( strpos($this->method, 'ftp') !== false ) {
    151             $constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR );
     151            $constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR, 'FTP_LANG_DIR' => WP_LANG_DIR );
    152152            foreach ( $constant_overrides as $constant => $dir )
    153153                if ( defined($constant) && $folder === $dir )
Note: See TracChangeset for help on using the changeset viewer.