Make WordPress Core

Ticket #31267: 31267.diff

File 31267.diff, 2.0 KB (added by ericlewis, 9 years ago)
  • src/wp-admin/includes/file.php

     
    872872}
    873873
    874874/**
    875  * Determines which Filesystem Method to use.
     875 * Determines which method to use for reading, writing, modifying, and deleting
     876 * files on the file system.
    876877 *
    877  * The priority of the Transports are: Direct, SSH2, FTP PHP Extension,
     878 * The priority of the transports are: Direct, SSH2, FTP PHP Extension,
    878879 * FTP Sockets (Via Sockets class, or `fsockopen()`).
    879880 *
    880  * Note that the return value of this function can be overridden in 2 ways
     881 * Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets'.
    881882 *
    882  *  - By defining FS_METHOD in your `wp-config.php` file
    883  *  - By using the filesystem_method filter
     883 * The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`,
     884 * or filtering via the `filesystem_method` filter.
    884885 *
    885  * Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets'.
     886 * Plugins may define a custom transport handler, @see WP_Filesystem().
    886887 *
    887  * Plugins may also define a custom transport handler, See the WP_Filesystem
    888  * function for more information.
    889  *
    890888 * @since 2.5.0
    891889 *
    892890 * @todo Properly mark arguments as optional.
    893891 *
    894  * @param array $args Connection details.
    895  * @param string $context Full path to the directory that is tested for being writable.
    896  * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable.
     892 * @param array  $args                        Connection details.
     893 * @param string $context                      Full path to the directory that is tested for being writable.
     894 * @param bool   $allow_relaxed_file_ownership Whether to allow Group/World writable.
    897895 * @return string The transport to use, see description for valid return values.
    898896 */
    899897function get_filesystem_method( $args = array(), $context = false, $allow_relaxed_file_ownership = false ) {