Skip to content

Commit 87d2546

Browse files
author
costdev
committed
MS Themes: Use ::get_views_links() in list table.
1 parent f00e957 commit 87d2546

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/wp-admin/includes/class-wp-ms-themes-list-table.php

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

446446
if ( 'search' !== $type ) {
447-
$status_links[ $type ] = sprintf(
448-
"<a href='%s'%s>%s</a>",
449-
esc_url( add_query_arg( 'theme_status', $type, $url ) ),
450-
( $type === $status ) ? ' class="current" aria-current="page"' : '',
451-
sprintf( $text, number_format_i18n( $count ) )
447+
$status_links[ $type ] = array(
448+
'url' => esc_url( add_query_arg( 'theme_status', $type, $url ) ),
449+
'label' => sprintf( $text, number_format_i18n( $count ) ),
450+
'current' => $type === $status,
452451
);
453452
}
454453
}
455454

456-
return $status_links;
455+
return $this->get_views_links( $status_links );
457456
}
458457

459458
/**

0 commit comments

Comments
 (0)