[wp-trac] [WordPress Trac] #19903: wp_count_comments() and get_comments_count() both do SQL queries
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 26 22:26:14 UTC 2012
#19903: wp_count_comments() and get_comments_count() both do SQL queries
-------------------------+--------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.4
Component: Comments | Version: 3.3.1
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------
Comment (by FolioVision):
Hi Mark,
Wouldn't it make better sense to simply get rid of get_comment_count and
make wp_count_comments count in the optimised way (see ticket #19901)?
Keeping them both around is very confusing, especially as
get_comment_count is not used in core. Duplicate functions have been a bit
of a bugbear for us.
Alec
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19903#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list