[wp-trac] [WordPress Trac] #50161: Slow query in WP_Posts_List_Table, no way to avoid with filters/hooks

WordPress Trac noreply at wordpress.org
Thu May 14 03:15:54 UTC 2020


#50161: Slow query in WP_Posts_List_Table, no way to avoid with filters/hooks
----------------------------+----------------------------------------------
 Reporter:  LucasMS         |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  5.4.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, administration, performance
----------------------------+----------------------------------------------

Comment (by LucasMS):

 Removing the 'mine' index from $views in views_edit-post filter will only
 remove the link, but the query is still executed.

 {{{#!php
 <?php
 add_filter('views_edit-post', 'remove_mine_view');
 function remove_mine_view( $views ) {
         unset($views['mine']);
         return $views;
 }
 }}}

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


More information about the wp-trac mailing list