Rough first cut of theme browser/installer. Props DD32. see #8652

git-svn-id: https://develop.svn.wordpress.org/trunk@10553 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-02-11 23:10:11 +00:00
parent 214f2ec681
commit a99acb3cfd
6 changed files with 1003 additions and 1 deletions

View File

@@ -327,6 +327,7 @@ function populate_roles() {
populate_roles_250();
populate_roles_260();
populate_roles_270();
populate_roles_280();
}
/**
@@ -530,4 +531,17 @@ function populate_roles_270() {
}
}
/**
* Create and modify WordPress roles for WordPress 2.8.
*
* @since 2.8.0
*/
function populate_roles_280() {
$role =& get_role( 'administrator' );
if ( !empty( $role ) ) {
$role->add_cap( 'install_themes' );
}
}
?>