WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#23746 new defect (bug)

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

Reported by: Kenshino Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5.1
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 @Kenshino2 years ago

Couldn't put single quotes

comment:2 @SergeyBiryukov2 years ago

  • Description modified (diff)

@michielhab2 years ago

23746.diff

Note: See TracTickets for help on using tickets.