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:
parent
2cda8d6dd2
commit
9efb88a3ac
@ -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
Block a user