diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 5e926163e1..8dcc4698f3 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -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] = "$text"; + $display_tabs['plugin-install-'.$action] = "$text"; } return $display_tabs; diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 5a25ebdbe0..3fc504c2b3 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -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] = "$text"; + $display_tabs['theme-install-'.$action] = "$text"; } return $display_tabs;