diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 16be10713f..6ddd11f071 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -73,7 +73,7 @@ function mysql2date( $format, $date, $translate = true ) { function current_time( $type, $gmt = 0 ) { // Don't use non-GMT timestamp, unless you know the difference and really need to. if ( 'timestamp' === $type || 'U' === $type ) { - return $gmt ? time() : time() + (int) ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ); + return $gmt ? time() : time() + (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ); } if ( 'mysql' === $type ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index d678e5d561..c4b96a8cf3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58922'; +$wp_version = '6.7-alpha-58923'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.