Make WordPress Core

Opened 3 years ago

Last modified 4 weeks ago

#23746 closed defect (bug)

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

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

Description (last modified by SergeyBiryukov)

<?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 (3)

comment:1 @Kenshino3 years ago

Couldn't put single quotes

comment:2 @SergeyBiryukov3 years ago

  • Description modified (diff)

@michielhab3 years ago


Note: See TracTickets for help on using tickets.