[wp-trac] [WordPress Trac] #35551: current_user_can always returns true for Super Admins (Doc update)

WordPress Trac noreply at wordpress.org
Sun Feb 7 01:26:19 UTC 2016


#35551: current_user_can always returns true for Super Admins (Doc update)
-----------------------------+---------------------------
 Reporter:  finnj            |       Owner:  DrewAPicture
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:  4.5
Component:  Role/Capability  |     Version:  4.4.1
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |     Focuses:  docs
-----------------------------+---------------------------
Changes (by DrewAPicture):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36492"]:
 {{{
 #!CommitTicketReference repository="" revision="36492"
 Docs: Add a note to the DocBlock for `current_user_can()` to explain that
 it will always return true for super admins, unless specifically denied.

 Props finnj.
 Fixes #35551.
 }}}

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


More information about the wp-trac mailing list