Make WordPress Core


Ignore:
Timestamp:
10/13/2011 10:43:38 AM (14 years ago)
Author:
dd32
Message:

WP_Filesystem_*::mkdir() untrailingslash path consistently, don't waste time attempting to create an "empty" path. See #15575. Props lordandrei and SergeyBiryukov for initial patches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ssh2.php

    r18632 r18964  
    312312    function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
    313313        $path = untrailingslashit($path);
     314        if ( empty($path) )
     315            return false;
     316
    314317        if ( ! $chmod )
    315318            $chmod = FS_CHMOD_DIR;
Note: See TracChangeset for help on using the changeset viewer.