Make WordPress Core


Ignore:
Timestamp:
04/24/2007 11:27:20 PM (18 years ago)
Author:
rob1n
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade-functions.php

    r5093 r5303  
    185185    if ( $wp_current_db_version < 4351 )
    186186        upgrade_old_slugs();
     187   
     188    if ( $wp_current_db_version < 5200 ) {
     189        upgrade_230();
     190    }
    187191
    188192    $wp_rewrite->flush_rules();
     
    563567        // Obsolete linkcategories table
    564568        $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'linkcategories');
     569    }
     570}
     571
     572function upgrade_230() {
     573    global $wp_current_db_version;
     574   
     575    if ( $wp_current_db_version < 5200 ) {
     576        populate_roles_230();
    565577    }
    566578}
Note: See TracChangeset for help on using the changeset viewer.