Make WordPress Core

Opened 5 years ago

Last modified 3 years ago

#23746 closed defect (bug)

add_role require string does not check for empty string — at Initial Version

Reported by: Kenshino Owned by:
Milestone: 4.4 Priority: normal
Severity: normal Version: 3.5
Component: Role/Capability Keywords: has-patch
Focuses: Cc:


<?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?

Change History (0)

Note: See TracTickets for help on using tickets.