Fix typo in languages directory creation for new installations. Props SergeyBiryukov. Fixes #18741 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@18765 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2011-09-24 04:18:44 +00:00
parent 5244f8f5e3
commit cc0d6fdf67
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ function update_core($from, $to) {
$lang_dir = WP_CONTENT_DIR . '/languages';
if ( !@is_dir($lang_dir) && 0 === strpos($lang_dir, ABSPATH) ) { // Check the language directory exists first
$wp_filesystem->mkdir($to . str_replace($lang_dir, ABSPATH, ''), FS_CHMOD_DIR); // If it's within the ABSPATH we can handle it here, otherwise they're out of luck.
$wp_filesystem->mkdir($to . str_replace(ABSPATH, '', $lang_dir), FS_CHMOD_DIR); // If it's within the ABSPATH we can handle it here, otherwise they're out of luck.
clearstatcache(); // for FTP, Need to clear the stat cache
}