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

WordPress Trac noreply at wordpress.org
Tue May 8 12:45:03 UTC 2018


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

Comment (by swissspidy):

 > At the end of the day, though, I don't know of a situation where a user
 who can view & edit this post (or page, or CPT) would not be allowed to be
 selected as an author. Is that correct?

 Not quite. That's the whole point of the ticket. This situation''exists''.
 Users with a custom role don't have the right `user_level` value. They can
 edit and view any post, but because of the user level they are not shown
 in the dropdown.

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


More information about the wp-trac mailing list