Fix: Timezone dropdown selection not shown in General Settings

This commit is contained in:
Savvas Hadjigeorgiou
2021-11-17 13:12:43 +02:00
parent d00540b686
commit 9508e7c0cf

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>