Thanks for the reply. The private posts would still be private. A logged out user would see them listed in the widget and be redirected to a 404 page when they click on them, unless you use a plugin like this as I do:
https://www.ads-software.com/plugins/lh-private-content-login/
In which case they would be redirected to wp-login.
I’m already achieving this behavior with the classic latest posts widget before WP 5.8 using this code:
function filter_recent_posts_widget_parameters($args) {
$args['post_status'] = array( 'publish', 'private' );
return $args;
}
I’m just wondering what the filter is for the new widget.