Make WordPress Core


Ignore:
Timestamp:
06/27/2015 01:02:12 AM (9 years ago)
Author:
wonderboymusic
Message:

For doc block types, favor bool over the few remaining booleans

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r32642 r32964  
    838838 * @param string|false $context                      Optional. Context for get_filesystem_method(). Default false.
    839839 * @param bool         $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
    840  * @return null|boolean false on failure, true on success.
     840 * @return null|bool false on failure, true on success.
    841841 */
    842842function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) {
     
    997997 * @todo Properly mark optional arguments as such
    998998 *
    999  * @param string $form_post the URL to post the form to
    1000  * @param string $type the chosen Filesystem method in use
    1001  * @param boolean $error if the current request has failed to connect
    1002  * @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method()
    1003  * @param array $extra_fields Extra POST fields which should be checked for to be included in the post.
    1004  * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable.
    1005  * @return boolean False on failure. True on success.
     999 * @param string $form_post    the URL to post the form to
     1000 * @param string $type         the chosen Filesystem method in use
     1001 * @param bool   $error        if the current request has failed to connect
     1002 * @param string $context      The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method()
     1003 * @param array  $extra_fields Extra POST fields which should be checked for to be included in the post.
     1004 * @param bool   $allow_relaxed_file_ownership Whether to allow Group/World writable.
     1005 * @return bool False on failure. True on success.
    10061006 */
    10071007function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false, $extra_fields = null, $allow_relaxed_file_ownership = false ) {
Note: See TracChangeset for help on using the changeset viewer.