Make WordPress Core


Ignore:
Timestamp:
02/07/2010 01:31:40 AM (14 years ago)
Author:
dd32
Message:

Reduce code duplication, Formatting cleanups, Reduce Chmod IO calls. See #10913 for excess IO calls.

File:
1 edited

Legend:

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

    r12997 r12998  
    155155
    156156    function chmod($file, $mode = false, $recursive = false ) {
    157 
    158157        if ( ! $mode ) {
    159158            if ( $this->is_file($file) )
     
    278277
    279278    function rmdir($path, $recursive = false ) {
    280         if ( ! $recursive )
    281             return $this->ftp->rmdir($path);
    282 
    283         return $this->ftp->mdel($path);
     279        $this->delete($path, $recursive);
    284280    }
    285281
Note: See TracChangeset for help on using the changeset viewer.