[wp-trac] [WordPress Trac] #60228: has_published_pages method does not always return intended result
WordPress Trac
noreply at wordpress.org
Wed Jan 10 18:24:55 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:
Severity: minor | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by sconroy):
"wp_count_posts('page')->publish" seems like a better way of retrieving a
count of the site's published pages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60228#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list