[wp-trac] [WordPress Trac] #37393: Is documentation summary for current_user_can() wrong?

WordPress Trac noreply at wordpress.org
Mon Jul 18 02:17:42 UTC 2016


#37393: Is documentation summary for current_user_can() wrong?
-----------------------------+----------------------
 Reporter:  zorobabel        |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Role/Capability  |     Version:  2.0
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:  docs
-----------------------------+----------------------
Changes (by Clorith):

 * status:  new => closed
 * focuses:   => docs
 * resolution:   => invalid
 * version:  trunk => 2.0
 * milestone:  Awaiting Review =>


Comment:

 Hi there, and welcome to Trac!

 You can actually pass an optional argument of `$object_id` here, you'll
 notice that there's a call to `func_get_args` which is used to get
 arguments, and then passed on to `call_user_func_array`.

 So the docs are correct in stating that there is an optional 2nd argument.

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


More information about the wp-trac mailing list