Make WordPress Core


Ignore:
Timestamp:
10/13/2011 10:43:38 AM (15 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-ftpsockets.php

    r17771 r18964  
    268268
    269269        function mkdir($path, $chmod = false, $chown = false, $chgrp = false ) {
     270                $path = untrailingslashit($path);
     271                if ( empty($path) )
     272                        return false;
     273
    270274                if ( ! $this->ftp->mkdir($path) )
    271275                        return false;
Note: See TracChangeset for help on using the changeset viewer.