[wp-trac] Re: [WordPress Trac] #10280: Comment approval bypassing
administrator must always approve comments feature.
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 26 20:10:01 GMT 2009
#10280: Comment approval bypassing administrator must always approve comments
feature.
-----------------------+----------------------------------------------------
Reporter: JimJordan | Type: enhancement
Status: new | Priority: normal
Milestone: 2.9 | Component: Comments
Version: 2.8 | Severity: normal
Keywords: |
-----------------------+----------------------------------------------------
Changes (by mrmist):
* keywords: reporter-feedback =>
* version: => 2.8
* type: defect (bug) => enhancement
Comment:
A quick and dirty hack would be to modify wp-includes\comment.php so line
428 changes from
{{{
if ( isset($userdata) && ( $user_id == $post_author ||
$user->has_cap('moderate_comments') ) ) {
}}}
to
{{{
if ( isset($userdata) && ( $user->has_cap('moderate_comments') ) ) {
}}}
Realistically any change to this is more an enhancement, since the
behavious as is is "correct" in most cases. I expect it wouldn't be
impossible to make it configurable as to whether post authors are or are
not automatically approved.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10280#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list