Clean up DocBlock information and syntax for `get_filesystem_method()`.

Props ericlewis, HarishChaudhari, valendesigns.
Fixes #31267.

Built from https://develop.svn.wordpress.org/trunk@31884


git-svn-id: http://core.svn.wordpress.org/trunk@31863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-03-25 16:32:28 +00:00
parent bfdc2f3ac6
commit 1ad0eaf416
2 changed files with 15 additions and 16 deletions

View File

@ -872,28 +872,27 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own
}
/**
* Determines which Filesystem Method to use.
* Determines which method to use for reading, writing, modifying, or deleting
* files on the filesystem.
*
* The priority of the Transports are: Direct, SSH2, FTP PHP Extension,
* FTP Sockets (Via Sockets class, or `fsockopen()`).
* The priority of the transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets
* (Via Sockets class, or `fsockopen()`). Valid values for these are: 'direct', 'ssh2',
* 'ftpext' or 'ftpsockets'.
*
* Note that the return value of this function can be overridden in 2 ways
* The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`,
* or filtering via {@see 'filesystem_method'}.
*
* - By defining FS_METHOD in your `wp-config.php` file
* - By using the filesystem_method filter
* @link https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants
*
* Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets'.
*
* Plugins may also define a custom transport handler, See the WP_Filesystem
* function for more information.
* Plugins may define a custom transport handler, See WP_Filesystem().
*
* @since 2.5.0
*
* @todo Properly mark arguments as optional.
*
* @param array $args Connection details.
* @param string $context Full path to the directory that is tested for being writable.
* @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable.
* @param array $args Optional. Connection details. Default empty array.
* @param string $context Optional. Full path to the directory that is tested
* for being writable. Default false.
* @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable.
* Default false.
* @return string The transport to use, see description for valid return values.
*/
function get_filesystem_method( $args = array(), $context = false, $allow_relaxed_file_ownership = false ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta2-31883';
$wp_version = '4.2-beta2-31884';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.