diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 9e25c36c37..9515f71d01 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -354,7 +354,7 @@ if ( str_contains( $tzstring, 'Etc/GMT' ) ) { if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists. $check_zone_info = false; - if ( 0 == $current_offset ) { + if ( 0 === (int) $current_offset ) { $tzstring = 'UTC+0'; } elseif ( $current_offset < 0 ) { $tzstring = 'UTC' . $current_offset; @@ -554,7 +554,7 @@ foreach ( $time_formats as $format ) { global $wp_locale; for ( $day_index = 0; $day_index <= 6; $day_index++ ) : - $selected = ( get_option( 'start_of_week' ) == $day_index ) ? 'selected="selected"' : ''; + $selected = ( (int) get_option( 'start_of_week' ) === $day_index ) ? 'selected="selected"' : ''; echo "\n\t'; endfor; ?> diff --git a/wp-includes/version.php b/wp-includes/version.php index 0971e8f817..bbc09ebaf7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57832'; +$wp_version = '6.6-alpha-57833'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.