Skip to content

Commit 9dda2f6

Browse files
author
costdev
committed
MS Sites: Use ::get_admin_status_links() in list table.
1 parent 6ba0804 commit 9dda2f6

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,15 @@ protected function get_views() {
269269
$label = sprintf( translate_nooped_plural( $label_count, $counts[ $status ] ), number_format_i18n( $counts[ $status ] ) );
270270
$full_url = 'all' === $status ? $url : add_query_arg( 'status', $status, $url );
271271

272-
$view_links[ $status ] = sprintf(
273-
'<a href="%1$s"%2$s>%3$s</a>',
274-
esc_url( $full_url ),
275-
$current_link_attributes,
276-
$label
272+
$view_links[ $status ] = array(
273+
'url' => esc_url( $full_url ),
274+
'label' => $label,
275+
'current' => $current_link_attributes,
277276
);
278277
}
279278
}
280279

281-
return $view_links;
280+
return $this->get_admin_status_links( $view_links );
282281
}
283282

284283
/**

0 commit comments

Comments
 (0)