[wp-trac] [WordPress Trac] #16841: Manually created user roles not showing in author dropdown regardless of assigned capabilities

WordPress Trac noreply at wordpress.org
Wed Jan 21 20:27:53 UTC 2015


#16841: Manually created user roles not showing in author dropdown regardless of
assigned capabilities
-----------------------------+------------------------------
 Reporter:  10sexyapples     |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  3.1
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by juiceboxint):

 Replying to [comment:20 lgladdy]:
 > The add_cap('level_1'); workaround will also apply to any existing users
 with the role you're adding to from r31190 / WordPress 3.2 which at least
 makes the workaround a little easier.

 Yep, the only thing is that you still have to change each user's role to
 something else and then back in order to update the actual user_level
 field in the database, if they were assigned that role before you added
 the level_1 cap. (tested a few minute ago on 4.1) So the workaround itself
 is pretty obscure, and the caveat for the workaround is even more obscure.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16841#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list