Illegal offset type in empty() when editing a draft post by another user
|Reported by:||duck_||Owned by:||ryan|
Description (last modified by duck_)
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  for draft posts created by other users because map_meta_cap() returns an array and its result is being put in an array.
Change History (5)
- Keywords commit added
- Owner set to ryan
- Severity changed from normal to major
- Status changed from new to reviewing