Use more specific view classes in plugin & theme install screens. Props batmoo. Fixes #15658
git-svn-id: http://svn.automattic.com/wordpress/trunk@16710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
70ab4e218f
commit
4c56a85962
|
@ -104,7 +104,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
|||
foreach ( (array) $tabs as $action => $text ) {
|
||||
$class = ( $action == $tab ) ? ' class="current"' : '';
|
||||
$href = self_admin_url('plugin-install.php?tab=' . $action);
|
||||
$display_tabs[$action] = "<a href='$href'$class>$text</a>";
|
||||
$display_tabs['plugin-install-'.$action] = "<a href='$href'$class>$text</a>";
|
||||
}
|
||||
|
||||
return $display_tabs;
|
||||
|
|
|
@ -116,7 +116,7 @@ class WP_Theme_Install_List_Table extends WP_List_Table {
|
|||
foreach ( (array) $tabs as $action => $text ) {
|
||||
$class = ( $action == $tab ) ? ' class="current"' : '';
|
||||
$href = self_admin_url('theme-install.php?tab=' . $action);
|
||||
$display_tabs[$action] = "<a href='$href'$class>$text</a>";
|
||||
$display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>";
|
||||
}
|
||||
|
||||
return $display_tabs;
|
||||
|
|
Loading…
Reference in New Issue