[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:29:21 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 lgladdy):

 Replying to [comment:21 juiceboxint]:
 > 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.

 That's what has been fixed and will be released in 3.2 - You won't need to
 do that anymore - add_cap will update any existing users :)

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


More information about the wp-trac mailing list