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:
parent
10091823f1
commit
4d695ba6b3
|
@ -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 );
|
||||
?>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue