[wp-trac] [WordPress Trac] #46271: Class WP_User, methods add_cap/remove_cap are buggy

WordPress Trac noreply at wordpress.org
Mon Feb 18 11:59:29 UTC 2019


#46271: Class WP_User, methods add_cap/remove_cap are buggy
--------------------------+-----------------------------
 Reporter:  mr.psiho      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  5.0.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Both methods use/make check in $this->caps, while capabilities are
 actually located in $this->allcaps. Therefore both these methods simply do
 not work at the moment.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46271>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list