mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user