map_meta_cap() doesn't require $post_author_data
|Reported by:||duck_||Owned by:||nacin|
map_meta_cap() sets up $post_author_data to check if a user is editing/deleting/reading their own post. However, the only piece of data required is the ID. To get this data we already have $post_author_id from $post->post_author or $user_id.
Change History (4)
Note: See TracTickets for help on using tickets.