- Timestamp:
- 04/15/2016 04:59:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-list-table.php
r10579 r10711 94 94 global $role; 95 95 96 // Used to reset the role 96 // Used to reset the role. 97 97 $reset_role = $role; 98 98 99 // Temporarly set the role to registered 99 // Temporarly set the role to registered. 100 100 $role = 'registered'; 101 101 102 // Used to reset the screen id once views are displayed 102 // Used to reset the screen id once views are displayed. 103 103 $reset_screen_id = $this->screen->id; 104 104 105 // Temporarly set the screen id to the users one 105 // Temporarly set the screen id to the users one. 106 106 $this->screen->id = 'users'; 107 107 108 // Use the parent function so that other plugins can safely add views 108 // Use the parent function so that other plugins can safely add views. 109 109 parent::views(); 110 110 111 // Reset the role 111 // Reset the role. 112 112 $role = $reset_role; 113 113 114 // Reset the screen id 114 // Reset the screen id. 115 115 $this->screen->id = $reset_screen_id; 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.