Changeset 59064
- Timestamp:
- 09/18/2024 10:35:35 PM (3 weeks ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r57793 r59064 1097 1097 1098 1098 if ( $current && isset( $current->last_checked ) ) { 1099 $last_update_check = $current->last_checked + get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;1099 $last_update_check = $current->last_checked + (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ); 1100 1100 } 1101 1101 -
trunk/src/wp-includes/bookmark-template.php
r57859 r59064 91 91 gmdate( 92 92 get_option( 'links_updated_date_format' ), 93 $bookmark->link_updated_f + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS )93 $bookmark->link_updated_f + (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) 94 94 ) 95 95 ); -
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; -
trunk/src/wp-mail.php
r56596 r59064 45 45 set_transient( 'mailserver_last_checked', true, WP_MAIL_INTERVAL ); 46 46 47 $time_difference = get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;47 $time_difference = (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ); 48 48 49 49 $phone_delim = '::';
Note: See TracChangeset
for help on using the changeset viewer.