[wp-trac] [WordPress Trac] #23746: add_role require string does not check for empty string
WordPress Trac
noreply at wordpress.org
Tue Mar 12 03:45:33 UTC 2013
#23746: add_role require string does not check for empty string
-----------------------------+-----------------------------
Reporter: Kenshino | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Role/Capability
Version: 3.5.1 | Severity: normal
Keywords: |
-----------------------------+-----------------------------
<?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>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list