[wp-trac] [WordPress Trac] #53383: bug: pre_get_posts modify vs posts (pages, etc) found numbers

WordPress Trac noreply at wordpress.org
Thu Sep 11 20:43:33 UTC 2025


#53383: bug: pre_get_posts modify vs posts (pages, etc) found numbers
-------------------------------+-----------------------------
 Reporter:  err                |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  invalid
 Keywords:  has-screenshots    |     Focuses:  administration
-------------------------------+-----------------------------
Changes (by SirLouen):

 * status:  new => closed
 * version:  5.7.2 =>
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 AFAIK, view counts are not updated when you apply a filter to the
 `WP_List_Table` like you are doing

 To manipulate views, you need to do this manually using this hook:

 https://developer.wordpress.org/reference/hooks/views_this-screen-id/

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


More information about the wp-trac mailing list