Plugin Install GSOC project first code drop. Props DD32 see #6015.

git-svn-id: http://svn.automattic.com/wordpress/trunk@8540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2008-08-04 21:01:09 +00:00
parent 7f0c014f36
commit 35f46f0d4b
22 changed files with 1026 additions and 129 deletions
+9
View File
@@ -277,6 +277,7 @@ function populate_roles() {
populate_roles_230();
populate_roles_250();
populate_roles_260();
populate_roles_270();
}
function populate_roles_160() {
@@ -441,4 +442,12 @@ function populate_roles_260() {
}
}
function populate_roles_270() {
$role = get_role( 'administrator' );
if ( !empty( $role ) ) {
$role->add_cap( 'install_plugins' );
}
}
?>