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

WordPress Trac noreply at wordpress.org
Wed Jan 20 22:39:55 UTC 2016


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

Comment (by finnj):

 @jeremyfelt the inline is on wp_user has_cap, not on current_user_can()

 I added a note on the codex (didn't know I could), and tried on the code
 reference documentation, but I did not formal the link correctly so it
 does not look good - Most likely this will be captured by moderation, as I
 cant edit my note...

 [https://developer.wordpress.org/reference/functions/current_user_can/
 https://developer.wordpress.org/reference/functions/current_user_can/]

 you can close this ticket

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


More information about the wp-trac mailing list