Skip to content

Commit 33a1a52

Browse files
committed
Networks and Sites: Ensure the Site Address field renders in correct order when RTL locale is active.
Developed in #10612 Props geminorum, johnjamesjacoby, westonruter. See #49949. Fixes #64381. git-svn-id: https://develop.svn.wordpress.org/trunk@61365 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f718ba2 commit 33a1a52

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -217,17 +217,18 @@
217217
</label>
218218
</th>
219219
<td>
220-
<?php if ( is_subdomain_install() ) { ?>
221-
<input name="blog[domain]" type="text" class="regular-text ltr" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span>
222-
<?php
223-
} else {
224-
echo get_network()->domain . get_network()->path
225-
?>
226-
<input name="blog[domain]" type="text" class="regular-text ltr" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required />
227-
<?php
228-
}
229-
echo '<p class="description" id="site-address-desc">' . __( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ) . '</p>';
230-
?>
220+
<span class="code">
221+
<?php if ( is_subdomain_install() ) : ?>
222+
<input name="blog[domain]" type="text" class="regular-text code" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required /><!--
223+
--><code class="no-break"><?php echo esc_html( '.' . preg_replace( '|^www\.|', '', get_network()->domain ) ); ?></code>
224+
<?php else : ?>
225+
<code class="no-break"><?php echo esc_html( get_network()->domain . get_network()->path ); ?></code><!--
226+
--><input name="blog[domain]" type="text" class="regular-text code" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required />
227+
<?php endif; ?>
228+
</span>
229+
<p class="description" id="site-address-desc">
230+
<?php _e( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ); ?>
231+
</p>
231232
</td>
232233
</tr>
233234
<tr class="form-field form-required">

0 commit comments

Comments
 (0)