mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-06 00:18:45 +01:00
Docs: Correct @return
value for rest_parse_date()
.
Follow-up to [34928], [36086], [47450]. Props mat-lipe, mukesh27, freewebmentor. See #60699. Built from https://develop.svn.wordpress.org/trunk@58267 git-svn-id: http://core.svn.wordpress.org/trunk@57730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bec7acd268
commit
a007d3d985
wp-includes
@ -1269,7 +1269,7 @@ function rest_get_avatar_sizes() {
|
||||
* @param string $date RFC3339 timestamp.
|
||||
* @param bool $force_utc Optional. Whether to force UTC timezone instead of using
|
||||
* the timestamp's timezone. Default false.
|
||||
* @return int Unix timestamp.
|
||||
* @return int|false Unix timestamp on success, false on failure.
|
||||
*/
|
||||
function rest_parse_date( $date, $force_utc = false ) {
|
||||
if ( $force_utc ) {
|
||||
@ -1291,7 +1291,7 @@ function rest_parse_date( $date, $force_utc = false ) {
|
||||
* @since 5.4.0
|
||||
*
|
||||
* @param string $color 3 or 6 digit hex color (with #).
|
||||
* @return string|false
|
||||
* @return string|false Color value on success, false on failure.
|
||||
*/
|
||||
function rest_parse_hex_color( $color ) {
|
||||
$regex = '|^#([A-Fa-f0-9]{3}){1,2}$|';
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6-alpha-58266';
|
||||
$wp_version = '6.6-alpha-58267';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user