Make WordPress Core

Ticket #26185: 26185._http_build_query.diff

File 26185._http_build_query.diff, 1.1 KB (added by morganestes, 11 years ago)

Added complete documentation of _http_build_query()

  • wp-includes/functions.php

     
    643643        return _http_build_query( $data, null, '&', '', false );
    644644}
    645645
    646 // from php.net (modified by Mark Jaquith to behave like the native PHP5 function)
     646/**
     647 * From php.net (modified by Mark Jaquith to behave like the native PHP5 function).
     648 *
     649 * @since 3.2.0
     650 * @link  http://us1.php.net/manual/en/function.http-build-query.php
     651 *
     652 * @param array|object  $data An array or object of data. Converted to array.
     653 * @param string                $prefix Optional. Numeric index. If set, start parameter numbering with it.
     654 * @param string                $sep Optional. Argument separator; defaults to 'arg_separator.output'.
     655 * @param string                $key Optional. Used to prefix key name.
     656 * @param bool                  $urlencode Optional. Whether to use {@link urlencode()} in the result.
     657 *
     658 * @return string The query string.
     659 */
    647660function _http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=true) {
    648661        $ret = array();
    649662