[wp-trac] [WordPress Trac] #32366: wp_count_comments() is hardcoded into /wp-admin/menu.php and queries all comments every single page load within the admin area, regardless of if edt_posts is removed from top menu or not

WordPress Trac noreply at wordpress.org
Thu Apr 4 22:13:04 UTC 2024


#32366: wp_count_comments() is hardcoded into /wp-admin/menu.php and queries all
comments every single page load within the admin area, regardless of if
edt_posts is removed from top menu or not
-----------------------------+------------------------------------------
 Reporter:  justindocanto    |       Owner:  (none)
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:  Future Release
Component:  Comments         |     Version:  4.2
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |     Focuses:  administration, performance
-----------------------------+------------------------------------------

Comment (by pbearne):

 I think we can close this the wp_count_comments function now caches the
 results so a lot less SQL is needed

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


More information about the wp-trac mailing list