﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
18461	adding a capability to a non-existing role gives warnings	opajaap	dd32	"When a plugin does something like this:

global $wp_roles;
$wp_roles->add_cap('a_nonexistent_role', 'any_capability');

no error (about the non-existance of the role) is displayed.
However, each subsequent page request produces this errormessage:

Notice: Undefined index: name in /mnt/web7/...../wordpress/wp-includes/capabilities.php on line 113

Debug is on: define('WP_DEBUG', true); in wp-config.php"	defect (bug)	closed	normal	3.5	Role/Capability	3.2.1	normal	fixed	has-patch	
