/**
* Gets an associative array ( id => link ) with the list of views available on this table.
*
* @since 4.9.6
*
* @return string[] An array of HTML links keyed by their view.
*/
protected function get_views() { $current_status =
isset( $_REQUEST['filter-status'
] ) ?
sanitize_text_field( $_REQUEST['filter-status'
] ) : '';
$statuses =
_wp_privacy_statuses();
$views = array
();
$counts =
$this->
get_request_counts();
$total_requests =
absint( array_sum( (array) $counts ) );
// Normalized admin URL.
$admin_url =
$this->
get_admin_url();
$status_label =
sprintf( /* translators: %s: Number of requests. */
_nx( 'All <span class="count">(%s)</span>',
'All <span class="count">(%s)</span>',
$total_requests,