Skip to content

Commit 2f2d2dd

Browse files
committed
Networks and Sites: Ensure the Site Address field renders in correct order when RTL locale is active.
Developed in WordPress/wordpress-develop#10612 Props geminorum, johnjamesjacoby, westonruter. See #49949. Fixes #64381. Built from https://develop.svn.wordpress.org/trunk@61365 git-svn-id: https://core.svn.wordpress.org/trunk@60677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent ffaa8fb commit 2f2d2dd

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

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">

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.0-alpha-61364';
19+
$wp_version = '7.0-alpha-61365';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)