WordPress.org

Make WordPress Core

Changeset 7912


Ignore:
Timestamp:
05/09/08 00:45:17 (7 years ago)
Author:
markjaquith
Message:

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

Location:
trunk
Files:
2 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; 
  • trunk/xmlrpc.php

    r7901 r7912  
    789789 
    790790        set_current_user(0, $user_login); 
    791         $is_admin = current_user_can('level_8'); 
     791        $is_admin = current_user_can('manage_options'); 
    792792 
    793793        $struct = array( 
Note: See TracChangeset for help on using the changeset viewer.