[wp-trac] Re: [WordPress Trac] #2783: Registered user can't see in the post their comments awaiting moderation

WordPress Trac wp-trac at lists.automattic.com
Tue May 8 21:08:34 GMT 2007


#2783: Registered user can't see in the post their comments awaiting moderation
-------------------------------------------------+--------------------------
 Reporter:  west54                               |        Owner:  anonymous
     Type:  defect                               |       Status:  new      
 Priority:  normal                               |    Milestone:  2.3      
Component:  Administration                       |      Version:  2.0.2    
 Severity:  major                                |   Resolution:           
 Keywords:  Registered User awaiting moderation  |  
-------------------------------------------------+--------------------------
Comment (by jeremyclarke):

 As far as I can tell the "if (!$user->ID):" is just there to stop the
 cookie from activating when the commenter is logged in. It breaks when you
 remove the '!' because now you're accidentally but explicitly blocking all
 non-logged-in users (whereas what was bothering you was just that there
 was blocking at all, as it's a useful message for all people who's
 comments are moderated).

 Really what this seems to need is to remove the check entirely. It seems
 like it's from a time when it would be assumed that logged-in users
 wouldn't be moderated or something. But people do moderate all comments
 and there's no way to force-allow comments from logged-in users without
 using a plugin. (this was a headache for awhile on the site i work on).

 Is there any reason this check exists? Otherwise it would make the most
 sense to just remove it entirely.

 http://trac.wordpress.org/browser/trunk/wp-comments-post.php
 remove lines 66 and 70 (the if and endif)

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


More information about the wp-trac mailing list