WordPress.org

Make WordPress Core

Ticket #6097: 6097.diff

File 6097.diff, 619 bytes (added by DD32, 10 years ago)
  • wp-includes/js/tinymce/tiny_mce_config.php

     
    155155// Cache path, this is where the .gz files will be stored
    156156$cache_path = ABSPATH . 'wp-content/uploads/js_cache';
    157157if ( $disk_cache && ! is_dir($cache_path) )
    158         $disk_cache = mkdir($cache_path);
     158        if( is_dir(ABSPATH . 'wp-content/uploads/') || @mkdir(ABSPATH . 'wp-content/uploads/') )
     159                $disk_cache = @mkdir($cache_path);
    159160
    160161$cache_ext = '.js';
    161162