We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
::get_views_links()
1 parent b2f4137 commit f00e957Copy full SHA for f00e957
1 file changed
src/wp-admin/includes/class-wp-theme-install-list-table.php
@@ -186,12 +186,14 @@ protected function get_views() {
186
187
$display_tabs = array();
188
foreach ( (array) $tabs as $action => $text ) {
189
- $current_link_attributes = ( $action === $tab ) ? ' class="current" aria-current="page"' : '';
190
- $href = self_admin_url( 'theme-install.php?tab=' . $action );
191
- $display_tabs[ 'theme-install-' . $action ] = "<a href='$href'$current_link_attributes>$text</a>";
+ $display_tabs[ 'theme-install-' . $action ] = array(
+ 'url' => self_admin_url( 'theme-install.php?tab=' . $action ),
+ 'label' => $text,
192
+ 'current' => $action === $tab,
193
+ );
194
}
195
- return $display_tabs;
196
+ return $this->get_views_links( $display_tabs );
197
198
199
/**
0 commit comments