Make WordPress Core


Ignore:
Timestamp:
05/06/2014 03:29:22 PM (10 years ago)
Author:
wonderboymusic
Message:

In WP_MS_Users_List_Table::get_views(), remove dead code:

  • $wp_roles doesn't need to be imported.
  • $current_role is set and never used.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r27077 r28295  
    8585
    8686    function get_views() {
    87         global $wp_roles, $role;
     87        global $role;
    8888
    8989        $total_users = get_user_count();
     
    9191        $total_admins = count( $super_admins );
    9292
    93         $current_role = false;
    9493        $class = $role != 'super' ? ' class="current"' : '';
    9594        $role_links = array();
Note: See TracChangeset for help on using the changeset viewer.