[wp-trac] [WordPress Trac] #4108: comments awaiting moderation sometimes not displayed

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 7 03:02:56 GMT 2007


#4108: comments awaiting moderation sometimes not displayed
---------------------+------------------------------------------------------
 Reporter:  wnorris  |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.4      
Component:  General  |     Version:  2.1.3    
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 comments awaiting moderation are displayed in the list of comments only
 for the person that posted the comment along with some text stating that
 it is awaiting moderation.  The problem is the logic used to determine if
 the current visitor is the author of the comment... the only check is that
 the name and email address cookies coming from the browser match those on
 the comment.  Users that are logged in, but do not have the name and email
 cookies set will be unable to view their unmoderated comments.

 The attached patch will allow logged in users view their comments awaiting
 moderation.  There is a TODO in the code to use the API instead of raw
 selects... perhaps that does need to be done at some point, but this at
 least addresses the short term.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4108>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list