Make WordPress Core


Ignore:
Timestamp:
12/25/2015 08:40:43 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return type for rest_parse_date().

Props TimothyBlynJacobs.
Fixes #35224.

File:
1 edited

Legend:

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

    r35845 r36086  
    602602
    603603/**
    604  * Parses an RFC3339 timestamp into a DateTime.
     604 * Parses an RFC3339 time into a Unix timestamp.
    605605 *
    606606 * @since 4.4.0
     
    609609 * @param bool   $force_utc Optional. Whether to force UTC timezone instead of using
    610610 *                          the timestamp's timezone. Default false.
    611  * @return DateTime DateTime instance.
     611 * @return int Unix timestamp.
    612612 */
    613613function rest_parse_date( $date, $force_utc = false ) {
Note: See TracChangeset for help on using the changeset viewer.