remove unused mkdir_p() function. props Nazgul. fixes #3079
git-svn-id: http://svn.automattic.com/wordpress/trunk@4301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1b1b5bfe03
commit
48ddfe8613
24
xmlrpc.php
24
xmlrpc.php
|
@ -61,30 +61,6 @@ function starify($string) {
|
||||||
logIO("I", $HTTP_RAW_POST_DATA);
|
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 {
|
class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
function wp_xmlrpc_server() {
|
function wp_xmlrpc_server() {
|
||||||
|
|
Loading…
Reference in New Issue