Fix: Timezone dropdown selection not shown in General Settings and Setup Wizard

This commit is contained in:
Savvas Hadjigeorgiou
2021-11-18 14:10:26 +02:00
parent ca584aa2bc
commit 2c45d17718
2 changed files with 2 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ class SP_Admin_Setup_Wizard {
$tzstring = 'UTC+' . $current_offset; $tzstring = 'UTC+' . $current_offset;
} }
} }
echo esc_attr( wp_timezone_choice( $tzstring ) ); echo wp_kses( wp_timezone_choice( $tzstring ), array( 'option' => array( 'value' => array(), 'selected' => array() ) ) );
?> ?>
</select> </select>
</td> </td>

View File

@@ -359,7 +359,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
<td class="forminp"> <td class="forminp">
<legend class="screen-reader-text"><span><?php esc_html_e( 'Timezone', 'sportspress' ); ?></span></legend> <legend class="screen-reader-text"><span><?php esc_html_e( 'Timezone', 'sportspress' ); ?></span></legend>
<select id="timezone_string" name="timezone_string" class="<?php echo esc_attr( $class ); ?>"> <select id="timezone_string" name="timezone_string" class="<?php echo esc_attr( $class ); ?>">
<?php echo esc_html( wp_timezone_choice( $tzstring ) ); ?> <?php echo wp_kses( wp_timezone_choice( $tzstring ), array( 'option' => array( 'value' => array(), 'selected' => array() ) ) ); ?>
</select> </select>
</td> </td>
</tr> </tr>