[wp-trac] [WordPress Trac] #23746: add_role require string does not check for empty string
WordPress Trac
noreply at wordpress.org
Wed Jul 10 07:44:06 UTC 2013
#23746: add_role require string does not check for empty string
-----------------------------+------------------------------
Reporter: Kenshino | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 3.5.1
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by dannydehaan):
I've made a little change in the patch of Michiel. In his patch in the
file wp-includes/capabilities.php:164 the script is checking if
$this->roles[$role] isset. After that the script is checking if $role
isset. I've switched those 2 if's.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23746#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list