mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user