[wp-trac] [WordPress Trac] #30250: Add filter for query used in `wp_count_posts()`

WordPress Trac noreply at wordpress.org
Mon Nov 17 21:23:06 UTC 2014


#30250: Add filter for query used in `wp_count_posts()`
----------------------------------------+-----------------------------
 Reporter:  danielbachhuber             |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Posts, Post Types           |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------------

Comment (by iworks):

 Partial solution.

 Do not count properly for sticky posts.

 Why?

 Sticky post are counted in different place.

 But if this direction is ok, just help me to finish this task.

 How handle this different place? `wp-admin/includes/class-wp-posts-list-
 table.php` line 83?

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


More information about the wp-trac mailing list