[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 13:35:30 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 juiceboxint):

 Replying to [comment:54 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.

 Yes - I apologize, I could have been more clear, upon reading it again.
 Rephrase it as "I don't know of a situation where a user who can view and
 edit this post ''should'' not be allowed to be selected as an author."

 In other words: is there any reason that the authors dropdown can't just
 be "people who are allowed to edit this particular page" - a calculation
 which abandoned the `user_level` concept many years ago?

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


More information about the wp-trac mailing list