WordPress.org

Make WordPress Core

Ticket #18741: 18741.patch

File 18741.patch, 810 bytes (added by SergeyBiryukov, 10 years ago)
  • wp-admin/includes/update-core.php

     
    384384                        $lang_dir = WP_CONTENT_DIR . '/languages';
    385385
    386386                if ( !@is_dir($lang_dir) && 0 === strpos($lang_dir, ABSPATH) ) { // Check the language directory exists first
    387                         $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.
     387                        $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.
    388388                        clearstatcache(); // for FTP, Need to clear the stat cache
    389389                }
    390390