mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
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:
parent
0a308a97bb
commit
cca720266b
@ -354,7 +354,7 @@ if ( str_contains( $tzstring, 'Etc/GMT' ) ) {
|
|||||||
|
|
||||||
if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
|
if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
|
||||||
$check_zone_info = false;
|
$check_zone_info = false;
|
||||||
if ( 0 == $current_offset ) {
|
if ( 0 === (int) $current_offset ) {
|
||||||
$tzstring = 'UTC+0';
|
$tzstring = 'UTC+0';
|
||||||
} elseif ( $current_offset < 0 ) {
|
} elseif ( $current_offset < 0 ) {
|
||||||
$tzstring = 'UTC' . $current_offset;
|
$tzstring = 'UTC' . $current_offset;
|
||||||
@ -554,7 +554,7 @@ foreach ( $time_formats as $format ) {
|
|||||||
global $wp_locale;
|
global $wp_locale;
|
||||||
|
|
||||||
for ( $day_index = 0; $day_index <= 6; $day_index++ ) :
|
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>';
|
echo "\n\t<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>';
|
||||||
endfor;
|
endfor;
|
||||||
?>
|
?>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user