From 34c848fb0a32af7bb0bfe80dc525fd6633597c31 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 22 Sep 2005 20:39:37 +0000 Subject: [PATCH] Pass along grant state when saving cap. Props Owen. fixes #1702 git-svn-id: http://svn.automattic.com/wordpress/trunk@2904 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 e30ff4313..236c88461 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -84,7 +84,7 @@ class WP_Role { global $wp_roles; $this->capabilities[$cap] = $grant; - $wp_roles->add_cap($this->name, $cap); + $wp_roles->add_cap($this->name, $cap, $grant); } function remove_cap($cap) {