Remove inactive roles. Add unfiltered_html cap to admin and editor roles.
git-svn-id: https://develop.svn.wordpress.org/trunk@2874 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3c12867919
commit
391c611d50
@ -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
Block a user