mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@6916 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -267,11 +267,19 @@ function populate_roles() {
|
||||
|
||||
function populate_roles_160() {
|
||||
// Add roles
|
||||
add_role('administrator', _c('Administrator|User role'));
|
||||
add_role('editor', _c('Editor|User role'));
|
||||
add_role('author', _c('Author|User role'));
|
||||
add_role('contributor', _c('Contributor|User role'));
|
||||
add_role('subscriber', _c('Subscriber|User role'));
|
||||
|
||||
// Dummy gettext calls to get strings in the catalog.
|
||||
_c('Administrator|User role');
|
||||
_c('Editor|User role');
|
||||
_c('Author|User role');
|
||||
_c('Contributor|User role');
|
||||
_c('Subscriber|User role');
|
||||
|
||||
add_role('administrator', 'Administrator|User role');
|
||||
add_role('editor', 'Editor|User role');
|
||||
add_role('author', 'Author|User role');
|
||||
add_role('contributor', 'Contributor|User role');
|
||||
add_role('subscriber', 'Subscriber|User role');
|
||||
|
||||
// Add caps for Administrator role
|
||||
$role = get_role('administrator');
|
||||
|
||||
Reference in New Issue
Block a user