WordPress.org

Make WordPress Core

Ticket #14918: amend-phpdoc.diff

File amend-phpdoc.diff, 642 bytes (added by simonwheatley, 4 years ago)
  • wp-includes/capabilities.php

     
    11561156 * 
    11571157 * @param string $role Role name. 
    11581158 * @param string $display_name Display name for role. 
    1159  * @param array $capabilities List of capabilities. 
     1159 * @param array $capabilities List of capabilities, e.g. array( 'edit_posts' => true, 'delete_posts' => false ); 
    11601160 * @return null|WP_Role WP_Role object if role is added, null if already exists. 
    11611161 */ 
    11621162function add_role( $role, $display_name, $capabilities = array() ) {