[wp-trac] [WordPress Trac] #43599: WP is asking for comment count for post 0
WordPress Trac
noreply at wordpress.org
Sun Mar 25 20:04:31 UTC 2018
#43599: WP is asking for comment count for post 0
-------------------------------+------------------------------
Reporter: Grzegorz.Janoszka | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.9.5
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by soulseekah):
* keywords: => reporter-feedback
Comment:
The docblock does not explicitly state this, but calling
`wp_count_comments` and `get_comment_count` with 0 (or no argument)
returns the totals for the whole blog, so caching seems to actually be
valid here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43599#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list