Skip to content

Commit

Permalink
Coding Standards: Fix WPCS issues in [47516].
Browse files Browse the repository at this point in the history
See #38665.

git-svn-id: https://develop.svn.wordpress.org/trunk@47519 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 27, 2020
1 parent dd1f14a commit c71cefe
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions src/wp-admin/user-new.php
Expand Up @@ -498,32 +498,33 @@
<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">
Expand Down Expand Up @@ -573,7 +574,7 @@
<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">
Expand Down

0 comments on commit c71cefe

Please sign in to comment.