WordPress.org

Make WordPress Core

Changeset 7701


Ignore:
Timestamp:
04/16/2008 09:56:03 PM (10 years ago)
Author:
ryan
Message:

Default cap arg should be an empty array. Props tellyworth. fixes #5520

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r6697 r7701  
    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;
     
    466466}
    467467
    468 function add_role($role, $display_name, $capabilities = '') {
     468function add_role($role, $display_name, $capabilities = array()) {
    469469    global $wp_roles;
    470470
Note: See TracChangeset for help on using the changeset viewer.