[wp-trac] [WordPress Trac] #38653: Trigger a doing it wrong when checking a role name as a capability

WordPress Trac noreply at wordpress.org
Mon May 1 16:28:20 UTC 2017


#38653: Trigger a doing it wrong when checking a role name as a capability
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  low                                  |   Milestone:  Awaiting
Component:  Role/Capability                      |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-unit-tests has-patch 2nd-        |  Resolution:
  opinion                                        |     Focuses:
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * keywords:  needs-patch needs-unit-tests good-first-bug needs-refresh =>
     has-unit-tests has-patch 2nd-opinion


Comment:

 [attachment:38653.2.diff] is a slightly more comprehensive approach.
 However, I'm having second thoughts about adding this notice in. There's
 currently no clean alternative method for checking the current user's
 role.

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


More information about the wp-trac mailing list