Skip to content

Commit

Permalink
remove unused mkdir_p() function. props Nazgul. fixes #3079
Browse files Browse the repository at this point in the history
git-svn-id: https://develop.svn.wordpress.org/branches/2.0@4302 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
markjaquith committed Oct 4, 2006
1 parent 82b0023 commit c7a6726
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions xmlrpc.php
Expand Up @@ -61,30 +61,6 @@ function starify($string) {
logIO("I", $HTTP_RAW_POST_DATA);


function mkdir_p($target) {
// from php.net/mkdir user contributed notes
if (file_exists($target)) {
if (!is_dir($target)) {
return false;
} else {
return true;
}
}

// Attempting to create the directory may clutter up our display.
if (@mkdir($target)) {
return true;
}

// If the above failed, attempt to create the parent node, then try again.
if (mkdir_p(dirname($target))) {
return mkdir_p($target);
}

return false;
}


class wp_xmlrpc_server extends IXR_Server {

function wp_xmlrpc_server() {
Expand Down

0 comments on commit c7a6726

Please sign in to comment.