[wp-trac] [WordPress Trac] #14928: wp_mkdir_p() phpdocs do not explain the "p" in the function name in full

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 22 23:59:13 UTC 2010


#14928: wp_mkdir_p() phpdocs do not explain the "p" in the function name in full
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------

Comment(by hakre):

 Thanks for the clarifications so far. That -p switch makes sense.

 > -p, --parents

 for reference: http://unixhelp.ed.ac.uk/CGI/man-cgi?mkdir

 I suggest to return true when the directory exists afterwards and false if
 not.

 So this needs clarification in the PHPdocs.

 Additionally the directory creation / user rights can be checked I smell
 something but need to find an older ticket first.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14928#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list