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

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 22 22:09:11 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         |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by ryan):

 Attachments have a post_type of attachment and revisions/autosaves have a
 post_type of revision.  wp_count_posts() does not include these.  I don't
 have anything with post_type of post and post_status of inherit on my
 testbeds.  Maybe old versions did this, I don't recall.

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


More information about the wp-trac mailing list