[wp-trac] [WordPress Trac] #35603: Allow `wp_count_posts()` on multisite after switching sites

WordPress Trac noreply at wordpress.org
Mon Jan 25 14:52:57 UTC 2016


#35603: Allow `wp_count_posts()` on multisite after switching sites
-------------------------------+------------------------------
 Reporter:  flixos90           |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  multisite
-------------------------------+------------------------------
Changes (by flixos90):

 * keywords:   => has-patch


Comment:

 The above patch fixes the problem. The one thing that is still not
 possible by using it is to also include private posts in the count. I'm
 not sure if this can be properly fixed at all using the current system
 though.

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


More information about the wp-trac mailing list