Make WordPress Core


Ignore:
Timestamp:
05/28/2015 09:40:27 PM (11 years ago)
Author:
wonderboymusic
Message:

Add @global annotations for wp-admin/*.

See #32444.

File:
1 edited

Legend:

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

    r32015 r32642  
    7070         * @since 3.1.0
    7171         * @access public
     72         *
     73         * @global string $role
     74         * @global string $usersearch
    7275         */
    7376        public function prepare_items() {
     
    134137         * @access protected
    135138         *
     139         * @global string $role
     140         *
    136141         * @return array An array of HTML links, one for each view.
    137142         */
    138143        protected function get_views() {
    139                 global $wp_roles, $role;
     144                global $role;
     145
     146                $wp_roles = wp_roles();
    140147
    141148                if ( $this->is_site_users ) {
     
    330337         * @access public
    331338         *
    332          * @global WP_Roles $wp_roles User roles object.
    333          *
    334339         * @param object $user_object The current user object.
    335340         * @param string $style       Deprecated. Not used.
     
    340345         */
    341346        public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
    342                 global $wp_roles;
     347                $wp_roles = wp_roles();
    343348
    344349                if ( ! ( $user_object instanceof WP_User ) ) {
Note: See TracChangeset for help on using the changeset viewer.