wordpress-develop/src/wp-includes/rest-api
Sergey Biryukov 10855438ea Date/Time: Replace all instances of date() with gmdate().
Use of `date()` in core depends on PHP timezone set to UTC and not changed by third party code (which cannot be guaranteed).

`gmdate()` is functionally equivalent, but is not affected by PHP timezone setting: it's always UTC, which is the exact behavior the core needs.

Props nielsdeblaauw, Rarst.
Fixes #46438. See #44491.

git-svn-id: https://develop.svn.wordpress.org/trunk@45424 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-26 00:11:37 +00:00
..
endpoints Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
fields REST API: Slash existing meta values when comparing with incoming meta upates. 2018-12-13 16:29:57 +00:00
search Docs: Add missing @see tag to WP_REST_Post_Search_Handler DocBlock. 2019-05-14 14:58:09 +00:00
class-wp-rest-request.php Docs: Convert @see reference in WP_REST_Request DocBlock to @link, to avoid a broken link in Developer Reference. 2019-05-14 14:54:31 +00:00
class-wp-rest-response.php Docs: Correct and improve various inline documentation. 2018-08-27 14:27:22 +00:00
class-wp-rest-server.php Docs: Correct and improve various inline documentation. 2018-08-27 14:27:22 +00:00