[wp-trac] [WordPress Trac] #23377: map_meta_cap() throws error from has_cap() from current_user_can()
WordPress Trac
noreply at wordpress.org
Mon Feb 4 22:10:09 UTC 2013
#23377: map_meta_cap() throws error from has_cap() from current_user_can()
------------------------------------+------------------------------
Reporter: wpsmith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by GaryJ):
Your patch would provide a graceful fallback - but if anyone's using
`current_user_can()` to check permissions for a different `$post`, and
also forgets the second argument, then it hides the notice, and may
actually give incorrect permissions, which may be considered worse than a
PHP Notice.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23377#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list