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

@@ -184,6 +184,10 @@ function upgrade_all() {
if ( $wp_current_db_version < 4351 )
upgrade_old_slugs();
if ( $wp_current_db_version < 5200 ) {
upgrade_230();
}
$wp_rewrite->flush_rules();
@@ -565,6 +569,14 @@ function upgrade_210() {
}
}
function upgrade_230() {
global $wp_current_db_version;
if ( $wp_current_db_version < 5200 ) {
populate_roles_230();
}
}
function upgrade_old_slugs() {
// upgrade people who were using the Redirect Old Slugs plugin
global $wpdb;