Make WordPress Core


Ignore:
Timestamp:
11/04/2015 05:53:40 PM (9 years ago)
Author:
wonderboymusic
Message:

Roles: map add_users cap to promote_users and remove it.

"Never used, will be removed." - The Ghost of 3.5 Nacin

Props Craig Ralston, renoirb.
Fixes #16719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r35479 r35507  
    849849        $role->add_cap( 'list_users' );
    850850        $role->add_cap( 'remove_users' );
    851 
    852         /*
    853          * Never used, will be removed. create_users or promote_users
    854          * is the capability you're looking for.
    855          */
    856         $role->add_cap( 'add_users' );
    857 
    858851        $role->add_cap( 'promote_users' );
    859852        $role->add_cap( 'edit_theme_options' );
Note: See TracChangeset for help on using the changeset viewer.