Use wp_mkdir_p() to create js cache dir. Props DD32. see #6097

git-svn-id: http://svn.automattic.com/wordpress/trunk@7159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-05 05:53:56 +00:00
parent 5ca43fe40b
commit 71d63f9b3e
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ if ( $isIE5 ) $compress = false;
// Cache path, this is where the .gz files will be stored // Cache path, this is where the .gz files will be stored
$cache_path = ABSPATH . 'wp-content/uploads/js_cache'; $cache_path = ABSPATH . 'wp-content/uploads/js_cache';
if ( $disk_cache && ! is_dir($cache_path) ) if ( $disk_cache && ! is_dir($cache_path) )
$disk_cache = mkdir($cache_path); $disk_cache = wp_mkdir_p($cache_path);
$cache_ext = '.js'; $cache_ext = '.js';