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

#1 @Kenshino
5 years ago

Couldn't put single quotes

#2 @SergeyBiryukov
5 years ago

  • Description modified (diff)

5 years ago


Note: See TracTickets for help on using tickets.