Internally, WordPress uses a special `post_date_gmt` value of `0000-00-00 00:00:00` to indicate that a draft's date is "floating" and should be updated whenever the post is saved. This makes it much more difficult for API clients to know the correct date of a draft post. This commit provides a best guess at a `date_gmt` value for draft posts in this situation using the `date` field and the site's current timezone offset. Props joehoyle. Fixes #38883. git-svn-id: https://develop.svn.wordpress.org/trunk@40108 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
.. | ||
factory | ||
bootstrap.php | ||
class-basic-object.php | ||
class-basic-subclass.php | ||
exceptions.php | ||
factory.php | ||
functions.php | ||
install.php | ||
mock-fs.php | ||
mock-image-editor.php | ||
mock-mailer.php | ||
speed-trap-listener.php | ||
spy-rest-server.php | ||
testcase-ajax.php | ||
testcase-canonical.php | ||
testcase-rest-api.php | ||
testcase-rest-controller.php | ||
testcase-rest-post-type-controller.php | ||
testcase-xmlrpc.php | ||
testcase.php | ||
trac.php | ||
utils.php | ||
wp-profiler.php |