Make WordPress Core


Ignore:
Timestamp:
05/09/2008 12:45:17 AM (17 years ago)
Author:
markjaquith
Message:

Remove last remaining user level checks in favor of capabilities checks. props filosofo. fixes #6940

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r7878 r7912  
    345345    }
    346346
    347     if ( $userdata && ( $user_id == $post_author || $user->has_cap('level_9') ) ) {
     347    if ( $userdata && ( $user_id == $post_author || $user->has_cap('moderate_comments') ) ) {
    348348        // The author and the admins get respect.
    349349        $approved = 1;
Note: See TracChangeset for help on using the changeset viewer.