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

WordPress Trac noreply at wordpress.org
Mon Jul 18 14:03:58 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
-----------------------------+----------------------

Comment (by zorobabel):

 @Clorith

 ''Hi there, and welcome to Trac!''

 Thanks!

 ''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.''

 I'm sorry, my bad, thanks for the clarification.

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


More information about the wp-trac mailing list