Changeset 20148 for trunk/wp-admin/includes/upgrade.php
- Timestamp:
- 03/08/2012 03:22:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r20080 r20148 1278 1278 } 1279 1279 } 1280 1280 1281 // 3.0 1281 1282 if ( $wp_current_db_version < 13576 ) 1282 1283 update_site_option( 'global_terms_enabled', '1' ); 1284 1283 1285 // 3.3 1284 1286 if ( $wp_current_db_version < 19390 ) 1285 1287 update_site_option( 'initial_db_version', $wp_current_db_version ); 1288 1286 1289 if ( $wp_current_db_version < 19470 ) { 1287 1290 if ( false === get_site_option( 'active_sitewide_plugins' ) ) 1288 1291 update_site_option( 'active_sitewide_plugins', array() ); 1292 } 1293 1294 // 3.4 1295 if ( $wp_current_db_version < 20148 ) { 1296 // 'allowedthemes' keys things by stylesheet. 'allowed_themes' keyed things by name. 1297 $allowedthemes = get_site_option( 'allowedthemes' ); 1298 $allowed_themes = get_site_option( 'allowed_themes' ); 1299 if ( false === $allowedthemes && is_array( $allowed_themes ) && $allowed_themes ) { 1300 $converted = array(); 1301 $themes = wp_get_themes(); 1302 foreach ( $themes as $stylesheet => $theme_data ) { 1303 if ( isset( $allowed_themes[ $theme_data->get('Name') ] ) ) 1304 $converted[ $stylesheet ] = true; 1305 } 1306 update_site_option( 'allowedthemes', $converted ); 1307 delete_site_option( 'allowed_themes' ); 1308 } 1289 1309 } 1290 1310 }
Note: See TracChangeset
for help on using the changeset viewer.