Make WordPress Core

Changeset 39489


Ignore:
Timestamp:
12/04/2016 08:26:21 PM (10 years ago)
Author:
rachelbaker
Message:

REST API: Merge similar date strings in the revisions and comments controllers.

Merges [39488] to the 4.7 branch.

Props ramiy.
Fixes #39016 for 4.7.

Location:
branches/4.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    r39458 r39489  
    12031203                                ),
    12041204                                'date'             => array(
    1205                                         'description'  => __( 'The date the object was published.' ),
     1205                                        'description'  => __( "The date the object was published, in the site's timezone." ),
    12061206                                        'type'         => 'string',
    12071207                                        'format'       => 'date-time',
     
    12091209                                ),
    12101210                                'date_gmt'         => array(
    1211                                         'description'  => __( 'The date the object was published as GMT.' ),
     1211                                        'description'  => __( 'The date the object was published, as GMT.' ),
    12121212                                        'type'         => 'string',
    12131213                                        'format'       => 'date-time',
  • branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    r39342 r39489  
    405405                                ),
    406406                                'date'            => array(
    407                                         'description' => __( 'The date the object was published.' ),
     407                                        'description' => __( "The date the object was published, in the site's timezone." ),
    408408                                        'type'        => 'string',
    409409                                        'format'      => 'date-time',
     
    427427                                ),
    428428                                'modified'        => array(
    429                                         'description' => __( 'The date the object was last modified.' ),
     429                                        'description' => __( "The date the object was last modified, in the site's timezone." ),
    430430                                        'type'        => 'string',
    431431                                        'format'      => 'date-time',
Note: See TracChangeset for help on using the changeset viewer.