mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
New dashboard from mdawaffe. see #5750
git-svn-id: https://develop.svn.wordpress.org/trunk@6705 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -251,6 +251,7 @@ function populate_roles() {
|
||||
populate_roles_160();
|
||||
populate_roles_210();
|
||||
populate_roles_230();
|
||||
populate_roles_250();
|
||||
}
|
||||
|
||||
function populate_roles_160() {
|
||||
@@ -390,4 +391,12 @@ function populate_roles_230() {
|
||||
}
|
||||
}
|
||||
|
||||
function populate_roles_250() {
|
||||
$role = get_role( 'administrator' );
|
||||
|
||||
if ( !empty( $role ) ) {
|
||||
$role->add_cap( 'edit_dashboard' );
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user