mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Default cap arg should be an empty array. Props tellyworth. fixes #5520
git-svn-id: https://develop.svn.wordpress.org/trunk@7701 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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) )
|
||||
|
||||
Reference in New Issue
Block a user