Let a plugin filter the expanded capabilities returned by map_meta_cap. Fixes #9462 props rmccue.
git-svn-id: https://develop.svn.wordpress.org/trunk@10874 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
62faa2c130
commit
16ab2e1302
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user