Coding Standards: Remove unused `$current_role` variable from Add New User form.

Follow-up to [9614], [28296].

Props ravipatel.
Fixes #51619.
Built from https://develop.svn.wordpress.org/trunk@49298


git-svn-id: http://core.svn.wordpress.org/trunk@49060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-10-24 12:49:05 +00:00
parent 10091823f1
commit 4d695ba6b3
2 changed files with 2 additions and 2 deletions

View File

@ -604,7 +604,7 @@ if ( current_user_can( 'create_users' ) ) {
<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 );
?>

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-beta1-49297';
$wp_version = '5.6-beta1-49298';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.