mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Default cap arg should be an empty array. Props tellyworth. fixes #5520
git-svn-id: http://svn.automattic.com/wordpress/trunk@7701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9df4077f95
commit
4e74faa972
@ -34,7 +34,7 @@ class WP_Roles {
|
||||
}
|
||||
}
|
||||
|
||||
function add_role($role, $display_name, $capabilities = '') {
|
||||
function add_role($role, $display_name, $capabilities = array()) {
|
||||
if ( isset($this->roles[$role]) )
|
||||
return;
|
||||
|
||||
@ -465,7 +465,7 @@ function get_role($role) {
|
||||
return $wp_roles->get_role($role);
|
||||
}
|
||||
|
||||
function add_role($role, $display_name, $capabilities = '') {
|
||||
function add_role($role, $display_name, $capabilities = array()) {
|
||||
global $wp_roles;
|
||||
|
||||
if ( ! isset($wp_roles) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user