Let a plugin filter the expanded capabilities returned by map_meta_cap. Fixes #9462 props rmccue.

git-svn-id: http://svn.automattic.com/wordpress/trunk@10874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-04-05 17:23:04 +00:00
parent 2b4925cf63
commit 8f58c6908e

View File

@ -905,7 +905,7 @@ function map_meta_cap( $cap, $user_id ) {
$caps[] = $cap;
}
return $caps;
return apply_filters('map_meta_cap', $caps, $cap, $user_id, $args);
}
/**