Ticket #58986: ticket-patch-58986.diff
File ticket-patch-58986.diff, 821 bytes (added by , 16 months ago) |
---|
-
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
1802 1802 * with the site's timezone offset applied. 1803 1803 */ 1804 1804 if ( '0000-00-00 00:00:00' === $post->post_modified_gmt ) { 1805 $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset') * HOUR_IN_SECONDS ) );1805 $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( (int) get_option( 'gmt_offset', 0 ) * HOUR_IN_SECONDS ) ); 1806 1806 } else { 1807 1807 $post_modified_gmt = $post->post_modified_gmt; 1808 1808 }