From ced3c54124b6f2d5227f2a1f8199037d3a62b7e2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 25 Oct 2012 20:18:24 +0000 Subject: [PATCH] Comment that the add_users capability was never used and has its days numbered. see #16719. git-svn-id: https://develop.svn.wordpress.org/trunk@22300 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/schema.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 6374c89ddb..5dfb41b952 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -792,7 +792,11 @@ function populate_roles_300() { $role->add_cap( 'update_core' ); $role->add_cap( 'list_users' ); $role->add_cap( 'remove_users' ); + + // Never used, will be removed. create_users or + // promote_users is the capability you're looking for. $role->add_cap( 'add_users' ); + $role->add_cap( 'promote_users' ); $role->add_cap( 'edit_theme_options' ); $role->add_cap( 'delete_themes' );