/*
// I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
if ( !empty( $_REQUEST['s'] ) )
$link = add_query_arg( 's', esc_attr( wp_unslash( $_REQUEST['s'] ) ), $link );
*/
$status_links[ $status ] = array
( 'url' =>
esc_url( $link ),
'label' =>
sprintf( translate_nooped_plural( $label,
$num_comments->
$status ),
sprintf( '<span class="%s-count">%s</span>',
( 'moderated' ===
$status ) ? 'pending' :
$status,
number_format_i18n( $num_comments->
$status ) ) ),
'current' =>
$status ===
$comment_status,
);
} /**
* Filters the comment status links.
*
* @since 2.5.0
* @since 5.1.0 The 'Mine' link was added.
*
* @param string[] $status_links An associative array of fully-formed comment status links. Includes 'All', 'Mine',
* 'Pending', 'Approved', 'Spam', and 'Trash'.
*/