Coding Standards: Remove unused $current_role
variable from Add New User form.
Follow-up to [9614], [28296]. Props ravipatel. Fixes #51619. git-svn-id: https://develop.svn.wordpress.org/trunk@49298 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4a3a7bd041
commit
9cf46a7348
@ -604,7 +604,7 @@ if ( current_user_can( 'create_users' ) ) {
|
|||||||
<td><select name="role" id="role">
|
<td><select name="role" id="role">
|
||||||
<?php
|
<?php
|
||||||
if ( ! $new_user_role ) {
|
if ( ! $new_user_role ) {
|
||||||
$new_user_role = ! empty( $current_role ) ? $current_role : get_option( 'default_role' );
|
$new_user_role = get_option( 'default_role' );
|
||||||
}
|
}
|
||||||
wp_dropdown_roles( $new_user_role );
|
wp_dropdown_roles( $new_user_role );
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user