[wp-trac] [WordPress Trac] #10869: Eliminate moderation on admin comments
WordPress Trac
noreply at wordpress.org
Sun Jul 28 23:05:05 UTC 2013
#10869: Eliminate moderation on admin comments
-------------------------+-----------------------------
Reporter: heather_r | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone: Future Release
Component: Comments | Version:
Severity: normal | Resolution: invalid
Keywords: close |
-------------------------+-----------------------------
Changes (by westonruter):
* cc: weston@… (added)
* keywords: comments, moderation, users, approval => close
* status: new => closed
* resolution: => invalid
Comment:
This is no longer valid. Comments are auto-approved in `wp_allow_comment`
if the currently-logged in users have the moderate_comments capability,
which admins obviously will have:
{{{
if ( isset( $user ) && ( $user_id == $post_author || $user->has_cap(
'moderate_comments' ) ) ) {
// The author and the admins get respect.
$approved = 1;
}
}}}
http://core.trac.wordpress.org/browser/tags/3.5.2/wp-
includes/comment.php#L691
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10869#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list