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

WordPress Trac noreply at wordpress.org
Thu Jan 21 00:14:17 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 jeremyfelt):

 Replying to [comment:4 finnj]:
 > @jeremyfelt the inline is on wp_user has_cap, not on current_user_can()

 Oops, I read too quickly. :) +1 for a reference on `current_user_can()`.

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


More information about the wp-trac mailing list