[wp-trac] [WordPress Trac] #60228: has_published_pages method does not always return intended result
WordPress Trac
noreply at wordpress.org
Thu Jan 11 08:06:11 UTC 2024
#60228: has_published_pages method does not always return intended result
-------------------------------+------------------------------
Reporter: sconroy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 6.0
Severity: minor | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by dlh):
* keywords: => reporter-feedback
* version: => 6.0
Comment:
Hi @sconroy, and welcome to WordPress Trac! Thanks for the report.
What's an example use case of a `get_pages` filter that removes the found
page?
The current logic was introduced in #55425, and the reasoning behind it
still stands, I think. Using `wp_count_posts()` is an interesting idea,
although that, too, is filterable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60228#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list