mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 06:42:56 +02:00
Docs: Correct @return
type for rest_parse_date()
.
Props TimothyBlynJacobs. Fixes #35224. Built from https://develop.svn.wordpress.org/trunk@36086 git-svn-id: http://core.svn.wordpress.org/trunk@36051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8009f97f79
commit
d9d21cf3ff
@ -601,14 +601,14 @@ function rest_cookie_collect_status() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses an RFC3339 timestamp into a DateTime.
|
* Parses an RFC3339 time into a Unix timestamp.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
* @param string $date RFC3339 timestamp.
|
* @param string $date RFC3339 timestamp.
|
||||||
* @param bool $force_utc Optional. Whether to force UTC timezone instead of using
|
* @param bool $force_utc Optional. Whether to force UTC timezone instead of using
|
||||||
* the timestamp's timezone. Default false.
|
* the timestamp's timezone. Default false.
|
||||||
* @return DateTime DateTime instance.
|
* @return int Unix timestamp.
|
||||||
*/
|
*/
|
||||||
function rest_parse_date( $date, $force_utc = false ) {
|
function rest_parse_date( $date, $force_utc = false ) {
|
||||||
if ( $force_utc ) {
|
if ( $force_utc ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36085';
|
$wp_version = '4.5-alpha-36086';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user