diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 3e48bae0da..b41f7285dc 100644
--- a/wp-admin/update-core.php
+++ b/wp-admin/update-core.php
@@ -1096,7 +1096,7 @@ if ( 'upgrade-core' === $action ) {
$current = get_site_transient( 'update_core' );
if ( $current && isset( $current->last_checked ) ) {
- $last_update_check = $current->last_checked + get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;
+ $last_update_check = $current->last_checked + (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );
}
echo '
';
diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php
index d5878887d9..af48fbfdca 100644
--- a/wp-includes/bookmark-template.php
+++ b/wp-includes/bookmark-template.php
@@ -90,7 +90,7 @@ function _walk_bookmarks( $bookmarks, $args = '' ) {
__( 'Last updated: %s' ),
gmdate(
get_option( 'links_updated_date_format' ),
- $bookmark->link_updated_f + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS )
+ $bookmark->link_updated_f + (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS )
)
);
$title .= ')';
diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
index 8aec375bc8..d1938872ed 100644
--- a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
+++ b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
@@ -1816,7 +1816,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
* with the site's timezone offset applied.
*/
if ( '0000-00-00 00:00:00' === $post->post_modified_gmt ) {
- $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) );
+ $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) );
} else {
$post_modified_gmt = $post->post_modified_gmt;
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 87e3028830..de1d58f1aa 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.7-alpha-59063';
+$wp_version = '6.7-alpha-59064';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
diff --git a/wp-mail.php b/wp-mail.php
index c405f6969e..7b18dd4ad1 100644
--- a/wp-mail.php
+++ b/wp-mail.php
@@ -44,7 +44,7 @@ if ( $last_checked ) {
set_transient( 'mailserver_last_checked', true, WP_MAIL_INTERVAL );
-$time_difference = get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;
+$time_difference = (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );
$phone_delim = '::';