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:
scribu 2010-12-03 18:51:24 +00:00
parent 70ab4e218f
commit 4c56a85962
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;