WordPress.org

Make WordPress Core

Changeset 15150


Ignore:
Timestamp:
06/06/10 15:05:18 (4 years ago)
Author:
ryan
Message:

Don't allow promoting a user that doesn't already belong to the blog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r15135 r15150  
    7474            continue; 
    7575        } 
     76 
     77        // If the user doesn't already belong to the blog, bail. 
     78        if ( !is_user_member_of_blog( $id ) ) 
     79            wp_die(__('Cheatin’ uh?')); 
    7680 
    7781        $user = new WP_User($id); 
Note: See TracChangeset for help on using the changeset viewer.