@@ -139,11 +139,9 @@ protected function get_views() {
139139
140140 $ current_link_attributes = 'super ' !== $ role ? ' class="current" aria-current="page" ' : '' ;
141141 $ role_links = array ();
142- $ role_links ['all ' ] = sprintf (
143- '<a href="%s"%s>%s</a> ' ,
144- network_admin_url ( 'users.php ' ),
145- $ current_link_attributes ,
146- sprintf (
142+ $ role_links ['all ' ] = array (
143+ 'url ' => network_admin_url ( 'users.php ' ),
144+ 'label ' => sprintf (
147145 /* translators: Number of users. */
148146 _nx (
149147 'All <span class="count">(%s)</span> ' ,
@@ -152,25 +150,25 @@ protected function get_views() {
152150 'users '
153151 ),
154152 number_format_i18n ( $ total_users )
155- )
153+ ),
154+ 'current ' => $ current_link_attributes ,
156155 );
157156 $ current_link_attributes = 'super ' === $ role ? ' class="current" aria-current="page" ' : '' ;
158- $ role_links ['super ' ] = sprintf (
159- '<a href="%s"%s>%s</a> ' ,
160- network_admin_url ( 'users.php?role=super ' ),
161- $ current_link_attributes ,
162- sprintf (
157+ $ role_links ['super ' ] = array (
158+ 'url ' => network_admin_url ( 'users.php?role=super ' ),
159+ 'current ' => $ current_link_attributes ,
160+ 'label ' => sprintf (
163161 /* translators: Number of users. */
164162 _n (
165163 'Super Admin <span class="count">(%s)</span> ' ,
166164 'Super Admins <span class="count">(%s)</span> ' ,
167165 $ total_admins
168166 ),
169167 number_format_i18n ( $ total_admins )
170- )
168+ ),
171169 );
172170
173- return $ role_links ;
171+ return $ this -> get_admin_status_links ( $ role_links ) ;
174172 }
175173
176174 /**
0 commit comments