From 8f58c6908e28fbc8b263555f69e8a777e6f4c926 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 5 Apr 2009 17:23:04 +0000 Subject: [PATCH] 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 --- wp-includes/capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index ab6ec3524d..a40d0a5801 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -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); } /**