[wp-trac] Re: [WordPress Trac] #8635: Invalid post count in dashboard

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 23 21:04:57 GMT 2009


#8635: Invalid post count in dashboard
--------------------------+-------------------------------------------------
 Reporter:  mlebkowski    |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  new      
 Priority:  low           |    Milestone:  2.8      
Component:  General       |      Version:  2.7      
 Severity:  minor         |   Resolution:           
 Keywords:  needs-patch   |  
--------------------------+-------------------------------------------------
Changes (by mrmist):

  * keywords:  => needs-patch

Comment:

 wp_count_posts in wp-includes/post.php should probably not be counting
 posts which have a post_type of revision or attachment.  As it is these
 would be returned to the total post count, as the where clause is not
 limited.  (Unless it's limited elsewhere I guess..)

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


More information about the wp-trac mailing list