REST API: Merge similar date strings in the revisions and comments controllers.
Props ramiy. Fixes #39016. git-svn-id: https://develop.svn.wordpress.org/trunk@39488 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d2a5f48449
commit
33f442f17b
@ -1202,13 +1202,13 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
),
|
||||
),
|
||||
'date' => array(
|
||||
'description' => __( 'The date the object was published.' ),
|
||||
'description' => __( "The date the object was published, in the site's timezone." ),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
),
|
||||
'date_gmt' => array(
|
||||
'description' => __( 'The date the object was published as GMT.' ),
|
||||
'description' => __( 'The date the object was published, as GMT.' ),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
|
@ -404,7 +404,7 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller {
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
),
|
||||
'date' => array(
|
||||
'description' => __( 'The date the object was published.' ),
|
||||
'description' => __( "The date the object was published, in the site's timezone." ),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
@ -426,7 +426,7 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller {
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
),
|
||||
'modified' => array(
|
||||
'description' => __( 'The date the object was last modified.' ),
|
||||
'description' => __( "The date the object was last modified, in the site's timezone." ),
|
||||
'type' => 'string',
|
||||
'format' => 'date-time',
|
||||
'context' => array( 'view', 'edit' ),
|
||||
|
Loading…
Reference in New Issue
Block a user