Skip to content

Commit d5a2579

Browse files
Users: Fix formatting inconsistencies
1 parent aeeeca5 commit d5a2579

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/wp-admin/user-new.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
if ( isset( $_REQUEST['action'] ) && 'adduser' === $_REQUEST['action'] ) {
3333
check_admin_referer( 'add-user', '_wpnonce_add-user' );
3434

35-
$user_details = null;
35+
$user_details = null;
3636
$redirect_args = array();
3737
foreach ( array( 'email', 'role', 'noconfirmation' ) as $redirect_arg ) {
3838
if ( isset( $_REQUEST[ $redirect_arg ] ) ) {
@@ -478,14 +478,14 @@
478478
<input name="action" type="hidden" value="adduser" />
479479
<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ); ?>
480480

481-
<?php
482-
$adduser_email = isset( $_GET['email'] ) ? wp_unslash( $_GET['email'] ) : '';
483-
$adduser_role = isset( $_GET['role'] ) ? sanitize_text_field( wp_unslash( $_GET['role'] ) ) : '';
484-
$adduser_noconfirmation = isset( $_GET['noconfirmation'] ) ? wp_unslash( $_GET['noconfirmation'] ) : '';
485-
if ( $adduser_role && ! array_key_exists( $adduser_role, get_editable_roles() ) ) {
486-
$adduser_role = '';
487-
}
488-
?>
481+
<?php
482+
$adduser_email = isset( $_GET['email'] ) ? wp_unslash( $_GET['email'] ) : '';
483+
$adduser_role = isset( $_GET['role'] ) ? sanitize_text_field( wp_unslash( $_GET['role'] ) ) : '';
484+
$adduser_noconfirmation = isset( $_GET['noconfirmation'] ) ? wp_unslash( $_GET['noconfirmation'] ) : '';
485+
if ( $adduser_role && ! array_key_exists( $adduser_role, get_editable_roles() ) ) {
486+
$adduser_role = '';
487+
}
488+
?>
489489
<table class="form-table" role="presentation">
490490
<tr class="form-field form-required">
491491
<th scope="row"><label for="adduser-email"><?php echo esc_html( $label ); ?></label></th>

0 commit comments

Comments
 (0)