Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
map_meta_caps should always return an array
Browse files Browse the repository at this point in the history
See #113
  • Loading branch information
paulgibbs committed Aug 1, 2013
1 parent f8ea57e commit a4050de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/core/caps.php
Expand Up @@ -95,7 +95,7 @@ function dpa_map_meta_caps( $caps, $cap, $user_id, $args ) {

// User is author so allow read
elseif ( (int) $user_id === (int) $post->post_author )
$caps = 'read';
$caps[] = 'read';

else
$caps[] = $post_type->cap->read_private_posts;
Expand Down

0 comments on commit a4050de

Please sign in to comment.