WordPress.org

Make WordPress Core

Ticket #5520: add_role_default_arg-r6450.patch

File add_role_default_arg-r6450.patch, 687 bytes (added by tellyworth, 14 years ago)
  • wordpress/wp-includes/capabilities.php

     
    3434                }
    3535        }
    3636
    37         function add_role($role, $display_name, $capabilities = '') {
     37        function add_role($role, $display_name, $capabilities = array()) {
    3838                if ( isset($this->roles[$role]) )
    3939                        return;
    4040
     
    463463        return $wp_roles->get_role($role);
    464464}
    465465
    466 function add_role($role, $display_name, $capabilities = '') {
     466function add_role($role, $display_name, $capabilities = array()) {
    467467        global $wp_roles;
    468468
    469469        if ( ! isset($wp_roles) )