Skip to content

Commit 9b96dce

Browse files
committed
Site settings pages (multisite)
1 parent 9dc9a6c commit 9b96dce

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

src/wp-admin/network/site-info.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,15 @@
161161
?>
162162
<tr class="form-field">
163163
<th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
164-
<td><?php echo esc_url( $parsed_scheme . '://' . $details->domain . $details->path ); ?></td>
164+
<td><code><?php echo esc_url( $parsed_scheme . '://' . $details->domain . $details->path ); ?></code></td>
165165
</tr>
166166
<?php
167167
// For any other site, the scheme, domain, and path can all be changed.
168168
else :
169169
?>
170170
<tr class="form-field form-required">
171171
<th scope="row"><label for="url"><?php _e( 'Site Address (URL)' ); ?></label></th>
172-
<td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
172+
<td><input name="blog[url]" type="url" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
173173
</tr>
174174
<?php endif; ?>
175175

src/wp-admin/network/site-settings.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,25 @@
143143
}
144144
}
145145

146+
$ltr_fields = array(
147+
'siteurl',
148+
'home',
149+
'admin_email',
150+
'new_admin_email',
151+
'mailserver_url',
152+
'mailserver_login',
153+
'mailserver_pass',
154+
'ping_sites',
155+
'permalink_structure',
156+
'category_base',
157+
'tag_base',
158+
'upload_path',
159+
'upload_url_path',
160+
);
161+
if ( in_array( $option->option_name, $ltr_fields, true ) ) {
162+
$class .= ' ltr';
163+
}
164+
146165
if ( strpos( $option->option_value, "\n" ) !== false ) {
147166
?>
148167
<tr class="form-field">

src/wp-admin/network/site-users.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,11 @@
336336
<table class="form-table" role="presentation">
337337
<tr>
338338
<th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th>
339-
<td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td>
339+
<td><input type="text" class="regular-text ltr" name="user[username]" id="user_username" /></td>
340340
</tr>
341341
<tr>
342342
<th scope="row"><label for="user_email"><?php _e( 'Email' ); ?></label></th>
343-
<td><input type="text" class="regular-text" name="user[email]" id="user_email" /></td>
343+
<td><input type="text" class="regular-text ltr" name="user[email]" id="user_email" /></td>
344344
</tr>
345345
<tr>
346346
<th scope="row"><label for="new_role_newuser"><?php _e( 'Role' ); ?></label></th>

0 commit comments

Comments
 (0)