Hello again,
This plugin overrides the get_pages() function:
https://www.ads-software.com/extend/plugins/get-pages-with-status/
I could do that, but it would require a change to post-template.php, which currently calls get_pages(). Is there some way to modify the query in get_pages as a plugin that won’t require modification to standard wordpress code?