[wp-trac] Re: [WordPress Trac] #2738: Counting of post within a category dos not work correctly (unpublished posts are counted)

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 13 19:38:59 GMT 2006


#2738: Counting of post within a category dos not work correctly (unpublished
posts are counted)
-----------------------+----------------------------------------------------
 Reporter:  MacSEK     |        Owner:  anonymous
     Type:  defect     |       Status:  new      
 Priority:  normal     |    Milestone:  2.1      
Component:  General    |      Version:  2.1      
 Severity:  normal     |   Resolution:           
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Changes (by andy):

  * keywords:  Sidebar counting posts category => has-patch
  * version:  2.0.2 => 2.1
  * milestone:  => 2.1

Comment:

 pad-counts.diff provides another method of counting categorized posts and
 links. This method pads parent category counts with the published
 posts/visible links of its children without counting any item twice. It is
 mainly useful for wp_list_categories as used in the default template,
 which is here fixed to eliminate the deprecated argument name.

 The result of this type of counting is that when you click on a category
 archive link, the number next to that link represents the number of items
 in that archive. This has no effect on non-hierarchical category listings.

 I tested this with future posting and all is well, both in the db and on
 the blog.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2738#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list