[wp-trac] [WordPress Trac] #36376: current_user_can/has_cap fails when user has multiple roles

WordPress Trac noreply at wordpress.org
Fri Apr 1 15:16:54 UTC 2016


#36376: current_user_can/has_cap fails when user has multiple roles
-------------------------------------------------+-------------------------
 Reporter:  mikejolley                           |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Role/Capability                      |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch dev-feedback needs-unit-   |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by jubstuff):

 Hello @mikejolley,

 I wrote a simple unit test but it seems that I'm unable to reproduce the
 issue.
 Can you please have a look at that?

 I also tried the WPFront User Role Editor, but the result was the same.

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


More information about the wp-trac mailing list