[wp-trac] [WordPress Trac] #41059: Prevent `do_not_allow` from being added as a capability

WordPress Trac noreply at wordpress.org
Sun Jun 25 06:34:59 UTC 2017


#41059: Prevent `do_not_allow` from being added as a capability
-----------------------------+----------------------------
 Reporter:  peterwilsoncc    |       Owner:  peterwilsoncc
     Type:  enhancement      |      Status:  reviewing
 Priority:  normal           |   Milestone:  4.9
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+----------------------------
Changes (by peterwilsoncc):

 * milestone:  Awaiting Review => 4.9


Comment:

 Will aim to put this in 4.9 soonish to let it soak.

 @johnbillion,

 I like the original patch but I am inclined to prevent `do_not_allow` from
 making it into the DB if WP is to block it, per
 [attachment:41059.2.patch].

 I'm in two minds as the original code is required to prevent the
 capability from being added via a filter. What are your thoughts?

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


More information about the wp-trac mailing list