Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17924, comment 41


Ignore:
Timestamp:
12/05/2013 04:20:07 PM (11 years ago)
Author:
nikolov.tmw
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17924, comment 41

    initial v1  
    1717It's rather simple in my opinion and I don't see why you'd need to be able to specify an array of roles when you use `wp_insert_user()`.
    1818Just make sure to either specify an empty string, or at least one of the roles for a user when you do `wp_insert_user()` - otherwise your new user would have the default role(which might not be the desired result in some cases).
     19
     20PS: As you can see my plugin uses a JS hack-around to replace the standard role selector with checkboxes - I generally don't think that's an issue since that's not the only component in the WP admin that relies on JS - besides the checkboxes would still be displayed even without JS, except for they wouldn't be in the same place as the Role select.