diff --git a/wp-includes/customize/class-wp-customize-date-time-control.php b/wp-includes/customize/class-wp-customize-date-time-control.php index 55bf64dbe2..a055b4eeb4 100644 --- a/wp-includes/customize/class-wp-customize-date-time-control.php +++ b/wp-includes/customize/class-wp-customize-date-time-control.php @@ -234,7 +234,7 @@ class WP_Customize_Date_Time_Control extends WP_Customize_Control { if ( $tz ) { $now = new DateTime( 'now', $tz ); - $formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / 3600 ); + $formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / HOUR_IN_SECONDS ); $tz_name = str_replace( '_', ' ', $tz->getName() ); $timezone_info['abbr'] = $now->format( 'T' ); 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 94e067dfb3..3ec9a3a134 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 @@ -1797,7 +1797,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' ) * 3600 ) ); + $post_modified_gmt = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) - ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ); } else { $post_modified_gmt = $post->post_modified_gmt; } diff --git a/wp-includes/revision.php b/wp-includes/revision.php index 0f76f908f1..9d3ca6f424 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -859,7 +859,7 @@ function _wp_upgrade_revisions_of_post( $post, $revisions ) { return false; } - if ( $locked > $now - 3600 ) { + if ( $locked > $now - HOUR_IN_SECONDS ) { // Lock is not too old: some other process may be upgrading this post. Bail. return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index b9afbaded9..47a8b5152d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54869'; +$wp_version = '6.2-alpha-54870'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.