[wp-trac] [WordPress Trac] #31518: WP_User::has_cap and 'map_meta_cap' filter

WordPress Trac noreply at wordpress.org
Fri Sep 4 08:25:30 UTC 2015


#31518: WP_User::has_cap and 'map_meta_cap' filter
-----------------------------+------------------------------
 Reporter:  dugi digitaly    |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  2.0
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |     Focuses:
-----------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => dev-feedback
 * component:  Users => Role/Capability


Comment:

 The attached patch would solve this. All unit tests related to
 capabilities still pass.

 There must be a reason `WP_User::has_cap` returns `true` by default
 though...

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


More information about the wp-trac mailing list