﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
16846	wp_dashboard_recent_comments can generate hundreds of queries	ocean90		"''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}}}.

Related: r16922

"	defect (bug)	closed	high	3.1.1	Comments	3.0	normal	fixed	has-patch	robert@…
