Coding Standards: Use strict comparison in wp-admin/options-general.php.

Follow-up to [1632], [12507].

Props aristath, poena, afercia, SergeyBiryukov.
See #60700.
Built from https://develop.svn.wordpress.org/trunk@57833


git-svn-id: http://core.svn.wordpress.org/trunk@57334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-03-14 14:27:13 +00:00
parent 0a308a97bb
commit cca720266b
2 changed files with 3 additions and 3 deletions

View File

@ -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<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>';
endfor;
?>

View File

@ -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.