From 8663c0ceb3971971d5eaff3f4c5d48ccf59e0482 Mon Sep 17 00:00:00 2001
From: Farhad Sakhaei <33499600+farhadsakhaei@users.noreply.github.com>
Date: Thu, 27 Mar 2025 21:45:55 +0330
Subject: [PATCH] RTL Improvement for Choosing Timezone
This fix improves the RTL direction in choosing Timezone in Admin area (options-general.php)
---
src/wp-includes/functions.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index ec6cc616dc98c..158b05d640c98 100644
--- a/src/wp-includes/functions.php
+++ b/src/wp-includes/functions.php
@@ -6673,7 +6673,7 @@ function wp_timezone_choice( $selected_zone, $locale = null ) {
if ( in_array( $selected_zone, $tz_identifiers, true ) === false
&& in_array( $selected_zone, timezone_identifiers_list( DateTimeZone::ALL_WITH_BC ), true )
) {
- $structure[] = '';
+ $structure[] = '';
}
foreach ( $zonen as $key => $zone ) {
@@ -6709,7 +6709,7 @@ function wp_timezone_choice( $selected_zone, $locale = null ) {
if ( $value === $selected_zone ) {
$selected = 'selected="selected" ';
}
- $structure[] = '';
+ $structure[] = '';
// Close continent optgroup.
if ( ! empty( $zone['city'] ) && ( ! isset( $zonen[ $key + 1 ] ) || ( isset( $zonen[ $key + 1 ] ) && $zonen[ $key + 1 ]['continent'] !== $zone['continent'] ) ) ) {
@@ -6723,7 +6723,7 @@ function wp_timezone_choice( $selected_zone, $locale = null ) {
if ( 'UTC' === $selected_zone ) {
$selected = 'selected="selected" ';
}
- $structure[] = '';
+ $structure[] = '';
$structure[] = '';
// Do manual UTC offsets.
@@ -6800,7 +6800,7 @@ function wp_timezone_choice( $selected_zone, $locale = null ) {
if ( $offset_value === $selected_zone ) {
$selected = 'selected="selected" ';
}
- $structure[] = '';
+ $structure[] = '';
}
$structure[] = '';