Make WordPress Core


Ignore:
Timestamp:
09/22/2013 04:43:29 AM (11 years ago)
Author:
dd32
Message:

First pass at documenting the WP_Filesystem methods. This also introduces stubs of the methods into the base class which are documented, which subclasses can override, some methods were cleaned up at the same time.
See #18476 See #23122. Props kurtpayne, bananastalktome, and, DrewAPicture

File:
1 edited

Legend:

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

    r25349 r25560  
    1616 */
    1717class WP_Filesystem_Direct extends WP_Filesystem_Base {
    18     var $errors = null;
     18
    1919    /**
    2020     * constructor
     
    2525        $this->method = 'direct';
    2626        $this->errors = new WP_Error();
    27     }
    28 
    29     /**
    30      * connect filesystem.
    31      *
    32      * @return bool Returns true on success or false on failure (always true for WP_Filesystem_Direct).
    33      */
    34     function connect() {
    35         return true;
    3627    }
    3728
     
    186177     *
    187178     * @param string $file Path to the file.
    188      * @return string Username of the user.
     179     * @return string|bool Username of the user or false on error.
    189180     */
    190181    function owner($file) {
Note: See TracChangeset for help on using the changeset viewer.