Changeset 5303
- Timestamp:
- 04/24/2007 11:27:20 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
wp-admin/admin-functions.php (modified) (1 diff)
-
wp-admin/upgrade-functions.php (modified) (2 diffs)
-
wp-admin/upgrade-schema.php (modified) (2 diffs)
-
wp-includes/version.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r5259 r5303 1949 1949 1950 1950 // A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter. 1951 if ( $test_type ) {1951 if ( $test_type && !current_user_can( 'unfiltered_upload' ) ) { 1952 1952 $wp_filetype = wp_check_filetype( $file['name'], $mimes ); 1953 1953 -
trunk/wp-admin/upgrade-functions.php
r5093 r5303 185 185 if ( $wp_current_db_version < 4351 ) 186 186 upgrade_old_slugs(); 187 188 if ( $wp_current_db_version < 5200 ) { 189 upgrade_230(); 190 } 187 191 188 192 $wp_rewrite->flush_rules(); … … 563 567 // Obsolete linkcategories table 564 568 $wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'linkcategories'); 569 } 570 } 571 572 function upgrade_230() { 573 global $wp_current_db_version; 574 575 if ( $wp_current_db_version < 5200 ) { 576 populate_roles_230(); 565 577 } 566 578 } -
trunk/wp-admin/upgrade-schema.php
r5184 r5303 263 263 populate_roles_160(); 264 264 populate_roles_210(); 265 populate_roles_230(); 265 266 } 266 267 … … 396 397 } 397 398 399 function populate_roles_230() { 400 $role = get_role( 'administrator' ); 401 402 if ( !empty( $role ) ) { 403 $role->add_cap( 'unfiltered_upload' ); 404 } 405 } 406 398 407 ?> -
trunk/wp-includes/version.php
r5288 r5303 4 4 5 5 $wp_version = '2.3-alpha'; 6 $wp_db_version = 5 183;6 $wp_db_version = 5200; 7 7 8 8 ?>
Note: See TracChangeset
for help on using the changeset viewer.