WordPress.org

Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #44975, comment 14


Ignore:
Timestamp:
07/29/2019 05:48:08 PM (15 months ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44975, comment 14

    v3 v4  
    33Accepting `null` makes sense: inserting null for these crates the "floating" date (it is the default database value for these fields).
    44
    5 One potential issue however is that `null` is the same as not sending any value at all for the field, right? This might lead to unexpected behavior if clients weren't always sending the `post_date_gmt` field.  I'm curious what precedent exists in other endpoints and APIs.   
     5One potential issue however is that `null` is the same as not sending any value at all for the field, right? This might lead to unexpected behavior if clients weren't always sending the `date_gmt` field.  I'm curious what precedent exists in other endpoints and APIs.