Use more specific view classes in plugin & theme install screens. Props batmoo. Fixes #15658

git-svn-id: https://develop.svn.wordpress.org/trunk@16710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-12-03 18:51:24 +00:00
parent 2cda8d6dd2
commit 9efb88a3ac
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 ) { foreach ( (array) $tabs as $action => $text ) {
$class = ( $action == $tab ) ? ' class="current"' : ''; $class = ( $action == $tab ) ? ' class="current"' : '';
$href = self_admin_url('plugin-install.php?tab=' . $action); $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; 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 ) { foreach ( (array) $tabs as $action => $text ) {
$class = ( $action == $tab ) ? ' class="current"' : ''; $class = ( $action == $tab ) ? ' class="current"' : '';
$href = self_admin_url('theme-install.php?tab=' . $action); $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; return $display_tabs;