mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
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:
parent
2b4925cf63
commit
8f58c6908e
@ -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