File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 32
32
if ( isset ( $ _REQUEST ['action ' ] ) && 'adduser ' === $ _REQUEST ['action ' ] ) {
33
33
check_admin_referer ( 'add-user ' , '_wpnonce_add-user ' );
34
34
35
- $ user_details = null ;
35
+ $ user_details = null ;
36
36
$ redirect_args = array ();
37
37
foreach ( array ( 'email ' , 'role ' , 'noconfirmation ' ) as $ redirect_arg ) {
38
38
if ( isset ( $ _REQUEST [ $ redirect_arg ] ) ) {
478
478
<input name="action" type="hidden" value="adduser" />
479
479
<?php wp_nonce_field ( 'add-user ' , '_wpnonce_add-user ' ); ?>
480
480
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
+ ?>
489
489
<table class="form-table" role="presentation">
490
490
<tr class="form-field form-required">
491
491
<th scope="row"><label for="adduser-email"><?php echo esc_html ( $ label ); ?> </label></th>
You can’t perform that action at this time.
0 commit comments