Coding Standards: Fix WPCS issues in [47516].

See #38665.
Built from https://develop.svn.wordpress.org/trunk@47519


git-svn-id: http://core.svn.wordpress.org/trunk@47294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-03-27 22:25:08 +00:00
parent 0a2dad400d
commit ee1bf5a911
2 changed files with 21 additions and 20 deletions

View File

@ -498,32 +498,33 @@ if ( current_user_can( 'create_users' ) ) {
<th scope="row"><label for="url"><?php _e( 'Website' ); ?></label></th>
<td><input name="url" type="url" id="url" class="code" value="<?php echo esc_attr( $new_user_uri ); ?>" /></td>
</tr>
<?php
$languages = get_available_languages();
if ( $languages ) : ?>
<?php
$languages = get_available_languages();
if ( $languages ) :
?>
<tr class="form-field user-language-wrap">
<th scope="row">
<label for="locale">
<?php /* translators: The user language selection field label */ ?>
<?php _e( 'Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span>
<?php /* translators: The user language selection field label. */ ?>
<?php _e( 'Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span>
</label>
</th>
<td>
<?php
wp_dropdown_languages( array(
'name' => 'locale',
'id' => 'locale',
'selected' => 'site-default',
'languages' => $languages,
'show_available_translations' => false,
'show_option_site_default' => true,
) );
?>
<?php
wp_dropdown_languages(
array(
'name' => 'locale',
'id' => 'locale',
'selected' => 'site-default',
'languages' => $languages,
'show_available_translations' => false,
'show_option_site_default' => true,
)
);
?>
</td>
</tr>
<?php
endif;
?>
<?php endif; ?>
<tr class="form-field form-required user-pass1-wrap">
<th scope="row">
<label for="pass1">
@ -573,7 +574,7 @@ if ( current_user_can( 'create_users' ) ) {
<label for="send_user_notification"><?php _e( 'Send the new user an email about their account.' ); ?></label>
</td>
</tr>
<?php } // End if ! is_multisite(). ?>
<?php } // End if ! is_multisite(). ?>
<tr class="form-field">
<th scope="row"><label for="role"><?php _e( 'Role' ); ?></label></th>
<td><select name="role" id="role">

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47517';
$wp_version = '5.5-alpha-47519';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.