Fix: Timezone dropdown selection not shown in General Settings and Setup Wizard
This commit is contained in:
@@ -248,7 +248,7 @@ class SP_Admin_Setup_Wizard {
|
||||
$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>
|
||||
</td>
|
||||
|
||||
@@ -359,7 +359,7 @@ if ( ! class_exists( 'SP_Settings_General' ) ) :
|
||||
<td class="forminp">
|
||||
<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 ); ?>">
|
||||
<?php echo esc_html( wp_timezone_choice( $tzstring ) ); ?>
|
||||
<?php echo wp_kses( wp_timezone_choice( $tzstring ), array( 'option' => array( 'value' => array(), 'selected' => array() ) ) ); ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user