Make WordPress Core


Ignore:
Timestamp:
10/24/2020 12:47:50 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

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

Props ravipatel.
Fixes #51619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r49248 r49298  
    605605            <?php
    606606            if ( ! $new_user_role ) {
    607                 $new_user_role = ! empty( $current_role ) ? $current_role : get_option( 'default_role' );
     607                $new_user_role = get_option( 'default_role' );
    608608            }
    609609            wp_dropdown_roles( $new_user_role );
Note: See TracChangeset for help on using the changeset viewer.