File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,14 +310,16 @@ protected function get_views() {
310310
311311 $ display_tabs = array ();
312312 foreach ( (array ) $ tabs as $ action => $ text ) {
313- $ current_link_attributes = ( $ action === $ tab ) ? ' class="current" aria-current="page" ' : '' ;
314- $ href = self_admin_url ( 'plugin-install.php?tab= ' . $ action );
315- $ display_tabs [ 'plugin-install- ' . $ action ] = "<a href=' $ href' $ current_link_attributes> $ text</a> " ;
313+ $ display_tabs [ 'plugin-install- ' . $ action ] = array (
314+ 'url ' => self_admin_url ( 'plugin-install.php?tab= ' . $ action ),
315+ 'label ' => $ text ,
316+ 'current ' => $ action === $ tab ,
317+ );
316318 }
317319 // No longer a real tab.
318320 unset( $ display_tabs ['plugin-install-upload ' ] );
319321
320- return $ display_tabs ;
322+ return $ this -> get_views_links ( $ display_tabs ) ;
321323 }
322324
323325 /**
You can’t perform that action at this time.
0 commit comments