Add unfiltered_upload cap, and allow for admins. Props Nazgul. fixes #4136

git-svn-id: https://develop.svn.wordpress.org/trunk@5303 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n
2007-04-24 23:27:20 +00:00
parent b0e84dde88
commit 215dca2430
4 changed files with 23 additions and 2 deletions

View File

@@ -262,6 +262,7 @@ function populate_options() {
function populate_roles() {
populate_roles_160();
populate_roles_210();
populate_roles_230();
}
function populate_roles_160() {
@@ -395,4 +396,12 @@ function populate_roles_210() {
}
}
function populate_roles_230() {
$role = get_role( 'administrator' );
if ( !empty( $role ) ) {
$role->add_cap( 'unfiltered_upload' );
}
}
?>