Remove inactive roles. Add unfiltered_html cap to admin and editor roles.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8552177520
commit
932d50e5d0
|
@ -258,6 +258,7 @@ function populate_roles() {
|
|||
'edit_plugins' => true,
|
||||
'edit_users' => true,
|
||||
'edit_files' => true,
|
||||
'unfiltered_html' => true,
|
||||
'import' => true,
|
||||
'read' => true,
|
||||
'level_10' => true,
|
||||
|
@ -285,6 +286,7 @@ function populate_roles() {
|
|||
'manage_categories' => true,
|
||||
'manage_links' => true,
|
||||
'upload_files' => true,
|
||||
'unfiltered_html' => true,
|
||||
'read' => true,
|
||||
'level_7' => true,
|
||||
'level_6' => true,
|
||||
|
@ -322,11 +324,7 @@ function populate_roles() {
|
|||
'capabilities' => array(
|
||||
'read' => true,
|
||||
'level_0' => true
|
||||
)),
|
||||
|
||||
'inactive' =>
|
||||
array('name' => __('Inactive'),
|
||||
'capabilities' => array())
|
||||
))
|
||||
);
|
||||
// FIXME: Temporary code to reset roles and caps if flag is set.
|
||||
if ( defined('RESET_CAPS') )
|
||||
|
|
Loading…
Reference in New Issue