Check create_users cap instead of edit_users wgen adding/inserting users. Props imwebgefunden. fixes #6662 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -378,6 +378,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
|
||||
?>
|
||||
|
||||
<br class="clear" />
|
||||
<?php if ( current_user_can('create_users') ) { ?>
|
||||
|
||||
<div class="wrap">
|
||||
<h2 id="add-new-user"><?php _e('Add New User') ?></h2>
|
||||
@@ -452,6 +453,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
break;
|
||||
|
||||
} // end of the $action switch
|
||||
|
||||
Reference in New Issue
Block a user