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) {