[wp-trac] [WordPress Trac] #9144: dashboard: comments from private posts show up in recent comments list
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 25 09:38:29 UTC 2009
#9144: dashboard: comments from private posts show up in recent comments list
--------------------------+-------------------------------------------------
Reporter: Taimon | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 3.0
Component: Comments | Version: 2.7
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by nacin):
* keywords: needs-patch => has-patch
* severity: minor => normal
* milestone: Future Release => 3.0
Comment:
Replying to [comment:5 Denis-de-Bernardy]:
> shouldn't the patch list 5 comments, always? the sql query should be
changed, rather than the comments filtered out, no?
It actually does. This patch is within a loop that pulls 50 comments at a
time until it reaches 5 acceptable ones.
New patch attached that uses current_user_can().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9144#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list