Make WordPress Core


Ignore:
Timestamp:
09/09/2013 02:54:50 AM (13 years ago)
Author:
dd32
Message:

WP_Filesystem: Let the code breathe, add some additional whitespace between method definitions and comments.

File:
1 edited

Legend:

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

    r25304 r25305  
    2424        $this->errors = new WP_Error();
    2525
    26         //Check if possible to use ftp functions.
     26        // Check if possible to use ftp functions.
    2727        if ( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' )
    2828                return false;
    2929        $this->ftp = new ftp();
    3030
    31         //Set defaults:
    3231        if ( empty($opt['port']) )
    3332            $this->options['port'] = 21;
     
    9493            fclose($temphandle);
    9594            unlink($temp);
    96             return ''; //Blank document, File does exist, It's just blank.
    97         }
    98 
    99         fseek($temphandle, 0); //Skip back to the start of the file being written to
     95            return ''; // Blank document, File does exist, It's just blank.
     96        }
     97
     98        fseek( $temphandle, 0 ); // Skip back to the start of the file being written to
    10099        $contents = '';
    101100
     
    243242
    244243    function is_readable($file) {
    245         //Get dir list, Check if the file is writable by the current user??
    246244        return true;
    247245    }
    248246
    249247    function is_writable($file) {
    250         //Get dir list, Check if the file is writable by the current user??
    251248        return true;
    252249    }
Note: See TracChangeset for help on using the changeset viewer.