[wp-trac] [WordPress Trac] #45146: Wrong use of function current_user_can on check_edit_permission
WordPress Trac
noreply at wordpress.org
Mon Oct 22 13:54:39 UTC 2018
#45146: Wrong use of function current_user_can on check_edit_permission
--------------------------+------------------------------
Reporter: elvishp2006 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: critical | Resolution: invalid
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by knutsp):
* status: new => closed
* version: 4.9.8 =>
* resolution: => invalid
Comment:
current_user_can may take a second parameter, $object_id. It's just not
documented in the function signature. See
documentation[https://developer.wordpress.org/reference/functions/current_user_can/].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45146#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list