Skip to content

Commit 0b3a190

Browse files
author
costdev
committed
Plugins: Use ::get_views_links() in list table.
1 parent 3af25cf commit 0b3a190

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/wp-admin/includes/class-wp-plugins-list-table.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -576,16 +576,15 @@ protected function get_views() {
576576
}
577577

578578
if ( 'search' !== $type ) {
579-
$status_links[ $type ] = sprintf(
580-
"<a href='%s'%s>%s</a>",
581-
add_query_arg( 'plugin_status', $type, 'plugins.php' ),
582-
( $type === $status ) ? ' class="current" aria-current="page"' : '',
583-
sprintf( $text, number_format_i18n( $count ) )
579+
$status_links[ $type ] = array(
580+
'url' => add_query_arg( 'plugin_status', $type, 'plugins.php' ),
581+
'label' => sprintf( $text, number_format_i18n( $count ) ),
582+
'current' => $type === $status,
584583
);
585584
}
586585
}
587586

588-
return $status_links;
587+
return $this->get_views_links( $status_links );
589588
}
590589

591590
/**

0 commit comments

Comments
 (0)