mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
Networks and Sites: Ensure the Site Address field renders in correct order when RTL locale is active.
Developed in https://github.com/WordPress/wordpress-develop/pull/10612 Props geminorum, johnjamesjacoby, westonruter. See #49949. Fixes #64381. Built from https://develop.svn.wordpress.org/trunk@61365 git-svn-id: http://core.svn.wordpress.org/trunk@60677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -217,17 +217,18 @@ if ( ! empty( $messages ) ) {
|
||||
</label>
|
||||
</th>
|
||||
<td>
|
||||
<?php if ( is_subdomain_install() ) { ?>
|
||||
<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>
|
||||
<?php
|
||||
} else {
|
||||
echo get_network()->domain . get_network()->path
|
||||
?>
|
||||
<input name="blog[domain]" type="text" class="regular-text ltr" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required />
|
||||
<?php
|
||||
}
|
||||
echo '<p class="description" id="site-address-desc">' . __( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ) . '</p>';
|
||||
?>
|
||||
<span class="code">
|
||||
<?php if ( is_subdomain_install() ) : ?>
|
||||
<input name="blog[domain]" type="text" class="regular-text code" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required /><!--
|
||||
--><code class="no-break"><?php echo esc_html( '.' . preg_replace( '|^www\.|', '', get_network()->domain ) ); ?></code>
|
||||
<?php else : ?>
|
||||
<code class="no-break"><?php echo esc_html( get_network()->domain . get_network()->path ); ?></code><!--
|
||||
--><input name="blog[domain]" type="text" class="regular-text code" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" required />
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<p class="description" id="site-address-desc">
|
||||
<?php _e( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="form-field form-required">
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-alpha-61364';
|
||||
$wp_version = '7.0-alpha-61365';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user