[wp-trac] Re: [WordPress Trac] #9211: Recent comments widget with "private" entries

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 22 11:08:35 GMT 2009


#9211: Recent comments widget with "private" entries
--------------------------+-------------------------------------------------
 Reporter:  menelicte     |       Owner:                                  
     Type:  defect (bug)  |      Status:  new                             
 Priority:  lowest        |   Milestone:  2.8                             
Component:  Widgets       |     Version:  2.7                             
 Severity:  trivial       |    Keywords:  widget comments has-patch tested
--------------------------+-------------------------------------------------
Changes (by mrmist):

  * keywords:  widget comments => widget comments has-patch tested
  * milestone:  Future Release => 2.8


Comment:

 Ok so it looks like the $comments is expecting to be filled with the whole
 contents of wp_comments, even when it's just populating the dashboard
 widget.

 So given that I've tidied up the query as best I can think to cover off
 #9200 and this one. It works for me (no more draft comments and private
 only if you can view private stuff) though I have not exhaustively tested
 it against any possible regressions.

 I still don't like it all that much ;)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9211#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list