Make WordPress Core

Ticket #26185: 26185.rollup.diff

File 26185.rollup.diff, 2.7 KB (added by morganestes, 11 years ago)

Consolidated patch with 4 functions documented.

  • wp-includes/functions.php

     
    8080 *
    8181 * @since 0.71
    8282 *
    83  * @param string $dateformatstring Format to display the date.
    84  * @param int $unixtimestamp Optional. Unix timestamp.
    85  * @param bool $gmt Optional, default is false. Whether to convert to GMT for time.
     83 * @param string   $dateformatstring Format to display the date.
     84 * @param bool|int $unixtimestamp    Optional. Unix timestamp.
     85 * @param bool     $gmt              Optional, default is false. Whether to convert to GMT for time.
     86 *
    8687 * @return string The date, translated if locale specifies it.
    8788 */
    8889function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
     
    643644        return _http_build_query( $data, null, '&', '', false );
    644645}
    645646
    646 // from php.net (modified by Mark Jaquith to behave like the native PHP5 function)
     647/**
     648 * From php.net (modified by Mark Jaquith to behave like the native PHP5 function).
     649 *
     650 * @since 3.2.0
     651 * @link  http://us1.php.net/manual/en/function.http-build-query.php
     652 *
     653 * @param array|object  $data       An array or object of data. Converted to array.
     654 * @param string        $prefix     Optional. Numeric index. If set, start parameter numbering with it.
     655 * @param string        $sep        Optional. Argument separator; defaults to 'arg_separator.output'.
     656 * @param string        $key        Optional. Used to prefix key name.
     657 * @param bool          $urlencode  Optional. Whether to use {@link urlencode()} in the result.
     658 *
     659 * @return string The query string.
     660 */
    647661function _http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=true) {
    648662        $ret = array();
    649663
     
    42364250}
    42374251
    42384252/**
    4239  * Test if the supplied date is valid for the Gregorian calendar
     4253 * Test if the supplied date is valid for the Gregorian calendar.
    42404254 *
    42414255 * @since 3.5.0
     4256 * @see checkdate()
    42424257 *
    4243  * @return bool true|false
     4258 * @param  int    $month       Month number.
     4259 * @param  int    $day         Day number.
     4260 * @param  int    $year        Year number.
     4261 * @param  string $source_date The date to filter.
     4262 * @return bool   True if valid date, false if not valid date.
    42444263 */
    42454264function wp_checkdate( $month, $day, $year, $source_date ) {
    42464265        /**
     
    43474366 * or if their cookie is within the grace period.
    43484367 *
    43494368 * @since 3.6.0
     4369 *
     4370 * @param array|object $response  The Heartbeat response object or array.
     4371 * @return array|object $response The Heartbeat response object or array with 'wp-auth-check' value set.
    43504372 */
    43514373function wp_auth_check( $response ) {
    43524374        $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] );