[wp-trac] [WordPress Trac] #20917: Illegal offset type in empty() when editing a draft post by another user
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 12 12:12:25 UTC 2012
#20917: Illegal offset type in empty() when editing a draft post by another user
------------------------------+------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Warnings/Notices | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+------------------
Description changed by duck_:
Old description:
> {{{
> Warning: Illegal offset type in isset or empty in wp-
> includes/capabilities.php on line 885
> }}}
>
> Triggered by a call to current_user_can() when building the View Post
> button for the tool bar.
>
> current_user_can( 'read_post', $post_id ) will return an array containing
> arrays since [21046] for draft posts created by other users because
> map_meta_cap() returns an array and it's result is being put in an array.
New description:
{{{
Warning: Illegal offset type in isset or empty in wp-
includes/capabilities.php on line 885
}}}
Triggered by a call to current_user_can() when building the View Post
button for the tool bar.
current_user_can( 'read_post', $post_id ) will return an array containing
arrays since [21046] for draft posts created by other users because
map_meta_cap() returns an array and its result is being put in an array.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20917#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list