WordPress.org

Make WordPress Core

Changes between Initial Version and Version 5 of Ticket #19903


Ignore:
Timestamp:
01/27/2012 02:11:26 AM (10 years ago)
Author:
markjaquith
Comment:

Fixing the description to note that wp_count_comments() returns an object.

Could the deprecated version become a wrapper for wp_count_comments()? We'd simply need to rename the returned array keys.

Maybe. Unless people are using it to get "hot" data from the database. The cached counts might sometimes be wrong.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19903 – Description

    initial v5  
    22
    33* Their results are returned in different formats:
    4  * {{{wp_count_comments()}}} returns an array of:
     4 * {{{wp_count_comments()}}} returns an object of:
    55  * spam
    66  * approved