diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
index 9f3e6ba..da1db13 100644
|
|
|
function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own
|
| 872 | 872 | } |
| 873 | 873 | |
| 874 | 874 | /** |
| 875 | | * Determines which Filesystem Method to use. |
| | 875 | * Determines which method to use for reading, writing, modifying or deleting |
| | 876 | * files on the file system. |
| 876 | 877 | * |
| 877 | | * The priority of the Transports are: Direct, SSH2, FTP PHP Extension, |
| | 878 | * The priority of the transports are: Direct, SSH2, FTP PHP Extension, |
| 878 | 879 | * FTP Sockets (Via Sockets class, or `fsockopen()`). |
| 879 | | * |
| 880 | | * Note that the return value of this function can be overridden in 2 ways |
| 881 | | * |
| 882 | | * - By defining FS_METHOD in your `wp-config.php` file |
| 883 | | * - By using the filesystem_method filter |
| 884 | | * |
| 885 | 880 | * Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets'. |
| | 881 | * @link https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants |
| 886 | 882 | * |
| 887 | | * Plugins may also define a custom transport handler, See the WP_Filesystem |
| 888 | | * function for more information. |
| | 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. |
| 889 | 885 | * |
| 890 | | * @since 2.5.0 |
| | 886 | * Plugins may define a custom transport handler, {@see WP_Filesystem()} |
| 891 | 887 | * |
| 892 | | * @todo Properly mark arguments as optional. |
| | 888 | * @since 2.5.0 |
| 893 | 889 | * |
| 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. |
| | 890 | * @param array $args Optional. Connection details. Default empty array. |
| | 891 | * @param string $context Optional. Full path to the directory that is tested |
| | 892 | * for being writable. Default false. |
| | 893 | * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. |
| | 894 | * Default false. |
| 897 | 895 | * @return string The transport to use, see description for valid return values. |
| 898 | 896 | */ |
| 899 | 897 | function get_filesystem_method( $args = array(), $context = false, $allow_relaxed_file_ownership = false ) { |