Make WordPress Core

Changeset 58267


Ignore:
Timestamp:
05/31/2024 10:33:16 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return value for rest_parse_date().

Follow-up to [34928], [36086], [47450].

Props mat-lipe, mukesh27, freewebmentor.
See #60699.

File:
1 edited

Legend:

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

    r58225 r58267  
    12701270 * @param bool   $force_utc Optional. Whether to force UTC timezone instead of using
    12711271 *                          the timestamp's timezone. Default false.
    1272  * @return int Unix timestamp.
     1272 * @return int|false Unix timestamp on success, false on failure.
    12731273 */
    12741274function rest_parse_date( $date, $force_utc = false ) {
     
    12921292 *
    12931293 * @param string $color 3 or 6 digit hex color (with #).
    1294  * @return string|false
     1294 * @return string|false Color value on success, false on failure.
    12951295 */
    12961296function rest_parse_hex_color( $color ) {
Note: See TracChangeset for help on using the changeset viewer.