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-direct.php

    r18632 r18964  
    288288                $path = untrailingslashit($path);
    289289                if ( empty($path) )
    290                         $path = '/';
     290                        return false;
    291291
    292292                if ( ! $chmod )
Note: See TracChangeset for help on using the changeset viewer.