[wp-trac] [WordPress Trac] #32694: current_user_can function is able to take post_id as argument, but it is not documented in WordPress documentation.

WordPress Trac noreply at wordpress.org
Thu Jun 18 03:43:22 UTC 2015


#32694: current_user_can function is able to take post_id as argument, but it is
not documented in WordPress documentation.
--------------------------+-----------------------------
 Reporter:  jliman        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.2.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The function current_user_can is documented with one parameter, but if we
 look at the code, it actually support post_id as the argument.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32694>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list