Skip to content

Commit

Permalink
Coding Standards: Remove unused $current_role variable from Add New…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
SergeyBiryukov committed Oct 24, 2020
1 parent 4a3a7bd commit 9cf46a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/user-new.php
Expand Up @@ -604,7 +604,7 @@
<td><select name="role" id="role">
<?php
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 );
?>
Expand Down

0 comments on commit 9cf46a7

Please sign in to comment.