- Timestamp:
- 09/18/2024 10:35:35 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r59036 r59064 1817 1817 */ 1818 1818 if ( '0000-00-00 00:00:00' === $post->post_modified_gmt ) { 1819 $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) );1819 $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ); 1820 1820 } else { 1821 1821 $post_modified_gmt = $post->post_modified_gmt;
Note: See TracChangeset
for help on using the changeset viewer.