[wp-trac] [WordPress Trac] #23746: add_role require string does not check for empty string

WordPress Trac noreply at wordpress.org
Tue Mar 12 07:32:57 UTC 2013


#23746: add_role require string does not check for empty string
-----------------------------+------------------------------
 Reporter:  Kenshino         |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  3.5.1
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> <?php add_role( $role, $display_name, $capabilities ); ?>
>
> add_role works with $role as ''.
>
> Perhaps it should check for empty string before allowing it to be added?

New description:

 `<?php add_role( $role, $display_name, $capabilities ); ?>`

 add_role works with $role as `''`.

 Perhaps it should check for empty string before allowing it to be added?

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23746#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list