[wp-trac] Re: [WordPress Trac] #6097: Warning</b>: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: No such file or directory in <b>~/wp-includes/js/tinymce/tiny_mce_config.php</b> on line <b>158</b>

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 5 00:29:16 GMT 2008


#6097: Warning</b>:  mkdir() [<a href='function.mkdir'>function.mkdir</a>]: No
such file or directory in <b>~/wp-
includes/js/tinymce/tiny_mce_config.php</b> on line <b>158</b>
----------------------------+-----------------------------------------------
 Reporter:  DD32            |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.5      
Component:  Administration  |      Version:  2.5      
 Severity:  normal          |   Resolution:           
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Comment (by DD32):

 I was wondering why it was in the upload dir. and not a cache dir or such,
 I assumed it was because the more lax permissions that are generally
 enabled for the upload dir in environments which need it.

 wp_upload_dir() returns the current month upload folder if WP is set to
 organise uploads into year/month folders (Which IMO, a lot of people seem
 to do).

 I've updated this to use wp_mkdir_p() instead.  as for wp_upload_dir()
 maybe can return a extra element 'base' (Or something else) which simply
 returns the upload folder base.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6097#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list