- Timestamp:
- 05/28/2015 09:40:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r32015 r32642 70 70 * @since 3.1.0 71 71 * @access public 72 * 73 * @global string $role 74 * @global string $usersearch 72 75 */ 73 76 public function prepare_items() { … … 134 137 * @access protected 135 138 * 139 * @global string $role 140 * 136 141 * @return array An array of HTML links, one for each view. 137 142 */ 138 143 protected function get_views() { 139 global $wp_roles, $role; 144 global $role; 145 146 $wp_roles = wp_roles(); 140 147 141 148 if ( $this->is_site_users ) { … … 330 337 * @access public 331 338 * 332 * @global WP_Roles $wp_roles User roles object.333 *334 339 * @param object $user_object The current user object. 335 340 * @param string $style Deprecated. Not used. … … 340 345 */ 341 346 public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) { 342 global $wp_roles;347 $wp_roles = wp_roles(); 343 348 344 349 if ( ! ( $user_object instanceof WP_User ) ) {
Note: See TracChangeset
for help on using the changeset viewer.