WordPress.org

Make WordPress Core

Changeset 4301


Ignore:
Timestamp:
10/04/06 04:53:48 (8 years ago)
Author:
markjaquith
Message:

remove unused mkdir_p() function. props Nazgul. fixes #3079

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r4144 r4301  
    6060 
    6161logIO("I", $HTTP_RAW_POST_DATA); 
    62  
    63  
    64 function mkdir_p($target) { 
    65     // from php.net/mkdir user contributed notes  
    66     if (file_exists($target)) { 
    67       if (!is_dir($target)) { 
    68         return false; 
    69       } else { 
    70         return true; 
    71       } 
    72     } 
    73  
    74     // Attempting to create the directory may clutter up our display. 
    75     if (@mkdir($target)) { 
    76       return true; 
    77     } 
    78  
    79     // If the above failed, attempt to create the parent node, then try again. 
    80     if (mkdir_p(dirname($target))) { 
    81       return mkdir_p($target); 
    82     } 
    83  
    84     return false; 
    85 } 
    8662 
    8763 
Note: See TracChangeset for help on using the changeset viewer.