[wp-trac] [WordPress Trac] #43421: The $capabilities argument in the `add_role()` function is incompatible with `user_can`

WordPress Trac noreply at wordpress.org
Sat Mar 17 18:38:31 UTC 2018


#43421: The $capabilities argument in the `add_role()` function is incompatible
with `user_can`
-----------------------------+-----------------------
 Reporter:  eclev91          |       Owner:
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  Role/Capability  |     Version:  4.9.4
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+-----------------------
Changes (by soulseekah):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Interesting though. `add_role` doesn't come with any predefined
 capabilities that you would want to "disable". So theoretically this
 sugary syntax could be supported. Any thoughts?

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


More information about the wp-trac mailing list