Clarify accepted types for the `$args` and `$context` parameters in `WP_Filesystem()`.

See #32246.


git-svn-id: https://develop.svn.wordpress.org/trunk@32338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-05-04 01:03:08 +00:00
parent 49626f348a
commit 511ce10e53
1 changed files with 4 additions and 6 deletions

View File

@ -823,12 +823,10 @@ function copy_dir($from, $to, $skip_list = array() ) {
*
* @since 2.5.0
*
* @param array $args Optional. Connection args, These are passed directly to
* the `WP_Filesystem_*()` classes. Default false.
* @param string $context Optional. Context for {@see get_filesystem_method()}.
* Default false.
* @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable.
* Default false.
* @param array|false $args Optional. Connection args, These are passed directly to
* the `WP_Filesystem_*()` classes. Default false.
* @param string|false $context Optional. Context for get_filesystem_method(). Default false.
* @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
* @return null|boolean false on failure, true on success.
*/
function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) {