wp_dashboard_recent_comments can generate hundreds of queries
|Reported by:||ocean90||Owned by:|
Reported by a good friend.
How to reproduce it:
You need a site with > 4000 comments. Now go to the dashboard, recent comments widget and change the number of comments to show too 3.
What will happen:
You get a slowly backend because of ~100 queries more.
How to fix it:
/wp-admin/includes/dashboard.php line 612, instead of the static number 5 it should be $total_items.
Change History (17)
- Keywords reporter-feedback added