]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-filesystem-ssh2.php
WordPress 3.4.2-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-filesystem-ssh2.php
index b809f4554968eb88b80b1982c11ee1b9aca9886e..3114456e097d4da0331f93c02be86d8ca761dae7 100644 (file)
@@ -306,11 +306,14 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
        }
 
        function touch($file, $time = 0, $atime = 0) {
-               //Not implmented.
+               //Not implemented.
        }
 
        function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
                $path = untrailingslashit($path);
+               if ( empty($path) )
+                       return false;
+
                if ( ! $chmod )
                        $chmod = FS_CHMOD_DIR;
                if ( ! ssh2_sftp_mkdir($this->sftp_link, $path, $chmod, true) )