[wp-trac] [WordPress Trac] #27952: get_blog_details()->post_count Does not subtract deleted posts

WordPress Trac noreply at wordpress.org
Tue Sep 2 02:43:26 UTC 2014


#27952: get_blog_details()->post_count Does not subtract deleted posts
--------------------------------------+-----------------------------
 Reporter:  GSMcNamara                |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  4.0
Component:  Networks and Sites        |     Version:  3.8.1
 Severity:  minor                     |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  multisite
--------------------------------------+-----------------------------
Changes (by nacin):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 get_post_field() is going to be a bit slower than `get_post( $post_id
 )->post_status` because get_post_field() runs things through
 sanitize_post_field().

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27952#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list