Ticket #26185: 26185.rollup.diff
File 26185.rollup.diff, 2.7 KB (added by , 11 years ago) |
---|
-
wp-includes/functions.php
80 80 * 81 81 * @since 0.71 82 82 * 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 * 86 87 * @return string The date, translated if locale specifies it. 87 88 */ 88 89 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { … … 643 644 return _http_build_query( $data, null, '&', '', false ); 644 645 } 645 646 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 */ 647 661 function _http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=true) { 648 662 $ret = array(); 649 663 … … 4236 4250 } 4237 4251 4238 4252 /** 4239 * Test if the supplied date is valid for the Gregorian calendar 4253 * Test if the supplied date is valid for the Gregorian calendar. 4240 4254 * 4241 4255 * @since 3.5.0 4256 * @see checkdate() 4242 4257 * 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. 4244 4263 */ 4245 4264 function wp_checkdate( $month, $day, $year, $source_date ) { 4246 4265 /** … … 4347 4366 * or if their cookie is within the grace period. 4348 4367 * 4349 4368 * @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. 4350 4372 */ 4351 4373 function wp_auth_check( $response ) { 4352 4374 $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] );