Make WordPress Core

Changeset 28917


Ignore:
Timestamp:
06/30/2014 03:46:22 AM (11 years ago)
Author:
DrewAPicture
Message:

Improve inline documentation for date_i18n(), _http_build_query(), wp_checkdate(), and wp_auth_check().

Props morganestes.
See #26185.

File:
1 edited

Legend:

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

    r28900 r28917  
    7878 * @since 0.71
    7979 *
    80  * @param string $dateformatstring Format to display the date.
    81  * @param int $unixtimestamp Optional. Unix timestamp.
    82  * @param bool $gmt Optional, default is false. Whether to convert to GMT for time.
     80 * @param string   $dateformatstring Format to display the date.
     81 * @param bool|int $unixtimestamp    Optional. Unix timestamp. Default false.
     82 * @param bool     $gmt              Optional. Whether to use GMT timezone. Default false.
     83 *
    8384 * @return string The date, translated if locale specifies it.
    8485 */
     
    653654}
    654655
    655 // from php.net (modified by Mark Jaquith to behave like the native PHP5 function)
    656 function _http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=true) {
     656/**
     657 * From php.net (modified by Mark Jaquith to behave like the native PHP5 function).
     658 *
     659 * @since 3.2.0
     660 *
     661 * @link  http://us1.php.net/manual/en/function.http-build-query.php
     662 *
     663 * @param array|object  $data       An array or object of data. Converted to array.
     664 * @param string        $prefix     Optional. Numeric index. If set, start parameter numbering with it.
     665 *                                  Default null.
     666 * @param string        $sep        Optional. Argument separator; defaults to 'arg_separator.output'.
     667 *                                  Default null.
     668 * @param string        $key        Optional. Used to prefix key name. Default empty.
     669 * @param bool          $urlencode  Optional. Whether to use urlencode() in the result. Default true.
     670 *
     671 * @return string The query string.
     672 */
     673function _http_build_query( $data, $prefix = null, $sep = null, $key = '', $urlencode = true ) {
    657674    $ret = array();
    658675
     
    42544271
    42554272/**
    4256  * Test if the supplied date is valid for the Gregorian calendar
     4273 * Test if the supplied date is valid for the Gregorian calendar.
    42574274 *
    42584275 * @since 3.5.0
    42594276 *
    4260  * @return bool true|false
     4277 * @see checkdate()
     4278 *
     4279 * @param  int    $month       Month number.
     4280 * @param  int    $day         Day number.
     4281 * @param  int    $year        Year number.
     4282 * @param  string $source_date The date to filter.
     4283 * @return bool   True if valid date, false if not valid date.
    42614284 */
    42624285function wp_checkdate( $month, $day, $year, $source_date ) {
     
    43624385 *
    43634386 * @since 3.6.0
     4387 *
     4388 * @param array|object $response  The Heartbeat response object or array.
     4389 * @return array|object $response The Heartbeat response object or array with 'wp-auth-check'
     4390 *                                value set.
    43644391 */
    43654392function wp_auth_check( $response ) {
Note: See TracChangeset for help on using the changeset viewer.