Make WordPress Core

Changeset 35012


Ignore:
Timestamp:
10/10/2015 03:35:26 PM (8 years ago)
Author:
wonderboymusic
Message:

Users List Table: after [35011], just use wp_roles(), no global import. #winning

See #22959.

File:
1 edited

Legend:

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

    r35011 r35012  
    525525     * @access protected
    526526     *
    527      * @global WP_Roles $wp_roles WP_Roles instance.
    528      *
    529527     * @param WP_User $user_object The WP_User object.
    530528     * @return array An array of user roles.
    531529     */
    532530    protected function get_role_list( $user_object ) {
    533         global $wp_roles;
     531        $wp_roles = wp_roles();
    534532
    535533        $role_list = array();
Note: See TracChangeset for help on using the changeset viewer.